olofk / serv

SERV - The SErial RISC-V CPU
ISC License
1.37k stars 178 forks source link

M-extension support for SERV #60

Closed zeeshanrafique23 closed 3 years ago

zeeshanrafique23 commented 3 years ago

This project was the part of GSoC'21. Completed by @zeeshanrafique23 under the mentorship of @olofk.

The RTL of M-extension and changes made in serv are verified with RISC-V compliance tests. Follow the README to run the tests.

The parent repository of MDU can be found here: https://github.com/zeeshanrafique23/mdu.git

To run the serv with M-extension you have to add mdu in fusesoc core list, run this command to check the existing core:

fusesoc core list

and to add mdu as a fusesoc core run this command:

fusesoc library add mdu https://github.com/zeeshanrafique23/mdu.git

Now run this command to build the serv core with mdu:

fusesoc run --target=verilator_tb --flag=mdu servant

Add --vcd flag to generate .vcd file to see the waveforms.

For more details check this Blog.

zeeshanrafique23 commented 3 years ago

Thanks for reviewing, the code is modified according to the requested changes.

olofk commented 3 years ago

Awesome! I have nothing more to complain about now. :) Well done and thank you for your contributions