jlpteaching / dinocpu

A teaching-focused RISC-V CPU design used at UC Davis
BSD 3-Clause "New" or "Revised" License
143 stars 38 forks source link

initial merge b4 rebase. csr can now write to mtvec, added fence as a nop #67

Open nganjehloo opened 5 years ago

nganjehloo commented 5 years ago

I made a slight change to csr unit to allow a program to change the exception/trap vector (mtvec register) and added the fence instruction as a nop

jardhu commented 4 years ago

@nganjehloo, when you come back to this pull request make sure to place the CSR within the dinocpu.components package, or maybe its own package if necessary. I refactored the dinocpu namespace in #95 to better organize the code, but did not touch your code as that would probably introduce some merging issues.