Jump to content

Recommended Posts

HI all, 

i want to use the RIsc_cpu in systemC 2.3.1 library to execute an assembly code, my systemC environnement is microsoft visual studio 2015,  how can i proceed to execute my code in the cpu  thank you  

Share this post


Link to post
Share on other sites

Have you read the README file in the risc_cpu example directory? You have to compile your assembler program using the provided simple assembler and store it in the icache.img file, which gets loaded by the instruction cache module upon its construction. However, the instruction set is only documented in the source code of the risc_cpu example (see decode.cpp). It is also a very old example, which might not be easily extensible to achieve the goals of your project. Other platforms (such as the SoClib mentioned in one of my previous posts) are better documented.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×