mariusmonton
93fe2237b4
better support to hex file
2018-12-12 18:15:21 +01:00
mariusmonton
a2a9c95546
Added A Extensions
...
Added SFENCE instruction
2018-12-12 18:14:35 +01:00
mariusmonton
1b93e7f569
added time management and cycle counters
2018-11-25 12:07:08 +01:00
mariusmonton
81f61c52fc
fixed dump function!
2018-11-25 12:05:09 +01:00
mariusmonton
0f291016c5
add support to RaiseExecption to all instructions
2018-11-24 23:46:47 +01:00
mariusmonton
4114f482d6
Doxygen
2018-11-24 23:46:01 +01:00
mariusmonton
d5489523de
better log output
2018-11-22 16:53:26 +01:00
mariusmonton
c832b2f80f
all tests passed!
2018-11-22 16:42:06 +01:00
mariusmonton
b9e26e4dea
first implementation supporting exceptions
2018-11-22 14:38:31 +01:00
mariusmonton
6726b59c3c
bug on SLLI
2018-11-22 12:39:16 +01:00
mariusmonton
0cd34f9f3b
fixed CSRRS and CSRRC bug
2018-11-22 12:08:16 +01:00
mariusmonton
9cd354b822
C examples halts simulation
2018-11-19 17:22:18 +01:00
mariusmonton
ed7be704f9
implementation of all remaining C extension
2018-11-19 15:56:08 +01:00
mariusmonton
3f7ecfa9df
bug fixes
2018-11-14 23:50:01 +01:00
mariusmonton
adc30178ab
fixed detection of M extension
2018-11-14 23:14:06 +01:00
mariusmonton
a8bdc37c12
all tests passed!
2018-11-14 19:14:57 +01:00
mariusmonton
d449ea5502
adding M extensions to simulator
2018-11-12 17:41:17 +01:00
mariusmonton
bdf261cbc6
default value to variable to remove a warning
2018-11-12 17:08:26 +01:00
mariusmonton
1fcbcf500b
typos 6 minor changes
2018-11-11 11:12:12 +01:00
mariusmonton
36646a182e
buf, intermediate value whould be 32 bits long
2018-11-08 18:55:47 +01:00
mariusmonton
9d7d84c7f8
bugs!
2018-11-07 18:43:10 +01:00
mariusmonton
598699cd54
more bug fixes, still get j zero in func3 test example
2018-10-17 17:42:43 +02:00
mariusmonton
374b853117
first version of C.extensions
2018-10-15 17:35:16 +02:00
mariusmonton
97b15ca7a3
better (?) Log output
2018-10-15 17:34:42 +02:00
mariusmonton
a409f48d40
Fixed wrong immediate accesses
2018-10-15 17:33:41 +02:00
mariusmonton
5ae765b304
Proper initialization of sp register
2018-10-15 17:32:37 +02:00
mariusmonton
aa526943b9
Added instructions to pass riscv-tests
2018-10-15 13:51:41 +02:00
mariusmonton
08044ac626
* Instruction: changed name to accessors
...
* CPU: moved huge switch case to a new function
* Execute: changed to use instruction new accessors
2018-10-10 12:08:53 +02:00
mariusmonton
70de804983
non-static data intialization removed, moved to constructor
2018-09-27 14:32:40 +02:00
mariusmonton
a5773202e1
renamed RISC_V_execute to Execute
2018-09-21 13:05:42 +02:00
mariusmonton
afbf317941
updated documentation
2018-09-21 11:23:31 +02:00
mariusmonton
4ba8b1bbb7
Added better PC control
2018-09-21 09:25:47 +02:00
mariusmonton
dcd3a8c3fe
better log output
2018-09-21 09:25:27 +02:00
mariusmonton
21003e2fa9
remove unused SC_THREAD
2018-09-21 09:24:49 +02:00
mariusmonton
406d498209
added PC control
2018-09-21 09:24:25 +02:00
mariusmonton
981b84a5eb
Better register dump
2018-09-20 15:29:22 +02:00
mariusmonton
11fae01cba
Changed memory to be addressable to byte instead to word (32bits)
2018-09-20 12:22:13 +02:00
mariusmonton
8e8418e3e2
Better logging output
2018-09-20 12:21:15 +02:00
mariusmonton
7910a061bc
updated README and minor changes
2018-09-19 23:51:01 +02:00
mariusmonton
8dcbf09589
Lot of changes:
...
* memory module parses 03 field and sets Program Counter (PC) to right value
* almost all RV32I instructions implemented
* added Trace module to mimic ARM ITM module
* added BusCtrl module as bus controler (very simple) to allow CPU & RISC_V_execute to access memory & peripherals
* lot of minor changes
2018-09-19 23:44:38 +02:00
mariusmonton
d0806a5759
added missing Load/Store instructions
2018-09-17 12:35:36 +02:00
mariusmonton
1c9bfe8c60
Added Data Memory bus. Implemented LW & SW instructions.
2018-09-17 12:21:26 +02:00
mariusmonton
35e688837a
initial import
2018-09-10 18:44:54 +02:00