qtrvsim
qtrvsim copied to clipboard
Recreate unitests for RISC-V
Modify the unit tests present in https://github.com/cvut/qtrvsim/tree/master/src/machine/tests to work with RISC-V.
- Implement each tested component in separate file. See https://github.com/cvut/qtrvsim/blob/master/src/machine/execute/alu.test.h and https://github.com/cvut/qtrvsim/blob/master/src/machine/CMakeLists.txt:94.
- Memory and cache should be OK, just move it.
I have done the moving so now we just need to fix the changed tests. It is prepared in branch rv-tests.
- [x] cache
- [x] memory
- [x] registers
- [ ] instruction
- [ ] program_loader
- [x] core
The all original complex core tests has been switched to RISC-V, see a9c15510cfad494dc98b9ab9e4ad7b3daddf63d3 and 043fbb17e3e91e08d03a3cfe8ef453ee4d40d846
Memory tests re-enabled and extended b1f16dbbde2fe7d551f8500a341591d03e7f718d