OpenCores
Issue List
instance support #40
Closed swaka opened this issue over 15 years ago
swaka commented over 15 years ago

or1ksim is written by C and uses many global variables. So cannot place multiple number of it.

And then it cannot be allowed to use same address between two or1ksim.

Could you support this in the future? At least two CPU instance should be supported.

Regards, swaka

jeremybennett commented over 15 years ago

Hi Swaka<br> <br> This a historic relic of how Or1ksim was written, many years ago (I was not the original author, I am just the latest maintainer). It was intended that any multiprocessor behavior would be modelled within the single Or1ksim executable.<br> <br> This is so deeply ingrained within Or1ksim that I believe a complete rewrite will be needed.<br> <br> I sympathise with the problem. It would be nice to wrap multiple instances of Or1ksim in SystemC and link them together as a multiprocessor system. The only way I can think to do this is to run each as a separate process, and provide a communication module to link them together. However this would not be very efficient.<br> <br> Jeremy

jeremybennett was assigned over 15 years ago
kate commented about 15 years ago

Hi, Actually I've been working on this problem. I've implement C++ version or or1ksim and connect the cores with SystemC network-on-chip implementation. I'll try to elaborate it and make it public soon!

jungsook

wallento commented about 15 years ago

Hi everybody,

I have recently started to remove the global variables to a container and explicit referencing of this object in function calls. This is not the nicest way, but might work. I think by the end of this week, the result might be available for testing. Please contact me in case of interest in it.

Best regards,

Stefan

wallento commented about 15 years ago

Dear all,

I have finished with this job. If anybody is interested in testing my patch, please contact me. The solution of a container struct for all global variables is rather ugly, but may be a starting point for further modularization. Next I will start with advanced testing, but have a problem building the toolchain and getting the vmware image respectively.

Stefan

jeremybennett commented almost 13 years ago
<p> Transferred to OpenRISC bugzilla (<a href="http://bugzilla.opencores.org/show_bug.cgi?id=43">Bug 43</a>). </p> <p> Marking closed in this bugtracker. </p>
jeremybennett closed this almost 13 years ago

Assignee
jeremybennett
Labels
Request