-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7075df
commit 8f2076e
Showing
4 changed files
with
105 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
0ff00093 // PC=0x0 line=1: addi x1, x0, 255 # x01 = 255 (32'b00000000000000000000000011111111) | ||
40000113 // PC=0x4 line=2: addi x2, x0, 1024 # x02 = 1024 | ||
00112023 // PC=0x8 line=3: sw x1, 0(x2) # (MEM:1024) = 255 (32'b00000000000000000000000011111111) | ||
00010183 // PC=0xc line=4: lb x3, 0(x2) # x03 = -1 (32'b11111111111111111111111111111111) | ||
00011203 // PC=0x10 line=5: lh x4, 0(x2) # x04 = 255 (32'b00000000000000000000000011111111) | ||
00012283 // PC=0x14 line=6: lw x5, 0(x2) # x05 = 255 (32'b00000000000000000000000011111111) | ||
00014303 // PC=0x18 line=7: lbu x6, 0(x2) # x06 = 255 (32'b00000000000000000000000011111111) | ||
00015383 // PC=0x1c line=8: lhu x7, 0(x2) # x07 = 255 (32'b00000000000000000000000011111111) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Usage: | ||
./rv32_simulator +initial_memory=path/to/memh/file | ||
Additional arguments: | ||
+initial_memory=path/to/memh/file | ||
Required: path to a memh file that containes the assembled binary to run. | ||
+max_cycles=NUMBER_OF_CYCLES_TO_RUN | ||
+wave_fn=path/to/wave/file | ||
default is rv32_simulator.fst | ||
+final_memory=path/to/memh/file | ||
If provided, the final memory contents will be saved here. Use this to debug your store instructions. | ||
WARNING: ./tests/provided/bytewise_distributed_ram.sv:58: $readmemh(../asm/out/storeload_2.memh): Not enough words in the file for the requested range [0:1023]. | ||
Running simulation of memory ../asm/out/storeload_2.memh for up to 10000 cycles. Waves will be stored to rv32_simulator.fst. | ||
FST info: dumpfile rv32_simulator.fst opened for output. | ||
Ran 10000 cycles, finishing. | ||
#TESTASSERTOUTPUT|---------------------------------------| | ||
#TESTASSERTOUTPUT| Register File State :) | | ||
#TESTASSERTOUTPUT|---------------------------------------| | ||
#TESTASSERTOUTPUT| x00, zero = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x01, ra = 0x000000ff ( 255)| | ||
#TESTASSERTOUTPUT| x02, sp = 0x00000400 ( 1024)| | ||
#TESTASSERTOUTPUT| x03, gp = 0xffffffff ( -1)| | ||
#TESTASSERTOUTPUT| x04, tp = 0x000000ff ( 255)| | ||
#TESTASSERTOUTPUT| x05, t0 = 0x000000ff ( 255)| | ||
#TESTASSERTOUTPUT| x06, t1 = 0x000000ff ( 255)| | ||
#TESTASSERTOUTPUT| x07, t2 = 0x000000ff ( 255)| | ||
#TESTASSERTOUTPUT| x08, s0 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x09, s1 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x10, a0 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x11, a1 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x12, a2 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x13, a3 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x14, a4 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x15, a5 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x16, a6 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x17, a7 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x18, s2 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x19, s3 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x20, s4 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x21, s5 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x22, s6 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x23, s7 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x24, s8 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x25, s9 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x26, s10 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x27, s11 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x28, t3 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x29, t4 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x30, t5 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT| x31, t6 = 0x00000000 ( 0)| | ||
#TESTASSERTOUTPUT|---------------------------------------| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters