OpenCores
Issue List
Or1ksim Memory Controller problems #88
Closed jeremybennett opened this issue almost 14 years ago
jeremybennett commented almost 14 years ago
<p> The Or1ksim memory controller has problems. </p> <p> <ol> <li> <p> The startup code sets the BA_MASK register for 64MB memory blocks. This means that if a smaller block of memory has been declared in the configuration file, then accesses to higher addresses, but less than 64MB will be allowed, but with no memory allocated, cause a segfault (see verify_memoryarea in memory.c). </p> </li> <li> <p> Enabling the memory controller causes memory at 0xf0000000 to be mirrored at 0x00000000. This means programs loaded in flash at 0xf0000000 work out of the box. However without the MC enabled this does not happen. The correct solution (in both cases) is to set the EPH bit in SR in the CPU configuration section. This needs more investigation, since I haven't seen what triggers this. </p> </li> <li> <p> Disabling the memory controller causes problems with the standard library startup code, since it expects to configure a memory controller at 0x93000000. This will cause lots of memory access errors. The workaround is to declare a 128B memory block at address 0x93000000. </p> </li> </ol> <p> These problems need further investigation (and probably splitting into 3 bugs). Placed here for the record. </p> <p> Jeremy </p>
jeremybennett was assigned almost 14 years ago
jeremybennett commented almost 14 years ago
<p> Or1ksim manual in SVN updated to warn of these issues and describe the workaround. </p> <p> Jeremy </p>
jeremybennett commented over 13 years ago
<p> Out of the box, using the memory controller in Or1ksim will cause the simulator to hang as a consequence of the above problems. </p> <p> <a href="http://opencores.org/project,or1k,bugtracker">Bug 1824</a> marked as a duplicate of this bug. </p>
jeremybennett commented over 12 years ago

Transferred to OpenRISC bugzilla (<a href="http://bugzilla.opencores.org/show_bug.cgi?id=15">Bug 15</a>).

</p> <p> Marking closed in this bugtracker. </p>
jeremybennett closed this over 12 years ago

Assignee
jeremybennett
Labels
Bug