ed255 / riscu-jolt

RISCU emulator and zk circuit simulator as a reference for a Jolt implementation
23 stars 1 forks source link

Simulate LD and SD #23

Closed ed255 closed 1 year ago

ed255 commented 1 year ago

Simulate LD and SD by the read/write operations that these instructions perform. Each memory operation is for 1 byte, so LD and SD do 8 each to read/write 64 bits. Since in Jolt the instruction fetching is not done through memory access, I added a new method called fetch_u32 used for instruction fetching which is not traced.