35#include <wx/statline.h>
36#include <wx/spinctrl.h>
69 memoryControl_(NULL), asInfoText_(NULL) {
72 simulator_ = wxGetApp().simulation()->frontend();
74 if (simulator_->isSimulationInitialized() ||
75 simulator_->isSimulationStopped() ||
76 simulator_->hasSimulationEnded()) {
113 asInfo.Prepend(_T(
" "));
114 asInfo.Append(_T(
": "));
118 asInfo.Append(_T(
" - "));
123 asInfo.Append(_T(
" MAU: "));
159 for (
unsigned int i = 0; i < memorySystem.
memoryCount(); i++) {
164 wxCommandEvent
dummy;
200 for (
unsigned i = 0; i < reads; i++) {
203 access.first, access.second, *wxGREEN);
207 for (
unsigned i = 0; i < writes; i++) {
210 access.first, access.second, *wxRED);
223 sizer_=
new wxBoxSizer(wxVERTICAL);
224 wxBoxSizer *item1 =
new wxBoxSizer(wxHORIZONTAL);
225 wxStaticText *item2 =
new wxStaticText(
227 wxDefaultPosition, wxDefaultSize, 0);
229 item1->Add(item2, 0, wxALIGN_CENTER|wxALL, 5);
231 wxString *strs3 = (wxString*) NULL;
233 this,
ID_AS_CHOICE, wxDefaultPosition, wxSize(150,-1), 0, strs3, 0);
235 item1->Add(
asChoice_, 0, wxALIGN_CENTER|wxALL, 5);
236 sizer_->Add(item1, 0, wxALIGN_CENTER|wxALL, 5);
238 wxStaticLine *item4 =
new wxStaticLine(
239 this,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL);
241 sizer_->Add(item4, 0, wxGROW|wxALL, 5);
247 sizer_->SetSizeHints(
this);
END_EVENT_TABLE() using namespace IDF
SimValue dummy(32)
a dummy simvalue which is given for operands that are not bound
#define EVT_SIMULATOR_PROGRAM_LOADED(id, fn)
#define EVT_SIMULATOR_STOP(id, fn)
static std::string toHexString(T source, std::size_t digits=0, bool include0x=true)
void highlight(Word address, unsigned count, const wxColour &colour)
void setMemory(Memory *memory)
std::pair< Word, int > MemoryAccess
MemoryAccess writeAccess(unsigned int idx) const
unsigned int readAccessCount() const
unsigned int writeAccessCount() const
MemoryAccess readAccess(unsigned int idx) const
MemoryPtr memory(const TTAMachine::AddressSpace &as)
unsigned int memoryCount() const
boost::shared_ptr< Memory > MemoryPtr
const TTAMachine::AddressSpace & addressSpace(unsigned int i)
MemoryControl * memoryControl_
MemoryControl widget which displays the memory contents.
void onProgramLoaded(const SimulatorEvent &event)
wxBoxSizer * sizer_
Toplevel sizer for the window widgets.
wxStaticText * asInfoText_
Static text control displaying address space information.
void onASChoice(wxCommandEvent &event)
SimulatorFrontend * simulator_
Simulator instance which contains the memory system to display.
virtual ~ProximMemoryWindow()
wxChoice * asChoice_
Address space choicer widget.
void loadMemory(const TTAMachine::AddressSpace &as)
void onSimulationStop(const SimulatorEvent &event)
MemorySystem & memorySystem(int coreId=-1)
virtual ULongWord end() const
virtual int width() const
virtual ULongWord start() const
virtual TCEString name() const
static wxString toWxString(const std::string &source)