VSIM
Zusätzliche Kommandos zur Speicher- und Registeranzeige als Konsolen Kommandos im VSIM bereitstellen.
Um zusätzliche Kommandos einzubinden muss im Sim- Verzeichnis eine Datei "testbench.udo" mit diesen Kommandos abgelegt werden, welche in der Datei "testbench.fdo" gestartet werden muss. Dazu wird in die Datei "testbench.fdo" die Zeile "do testbench.udo" nach der Zeile "do $SPARTANMC_ROOT/src/scripts/tcl/runsim.fdo" eingefügt. Die Datei "testbench.udo" können Sie hier herunterladen.Protokoll der Kommandos "showmem", "showdmem" und "showregs"
transcript
# [ 1468 ] 00000 + 00000 ( 0 / 0) # [ 1496 ] 0x00000 LHI r 8, 00000 PASSB ( 0 / 0) # [ 1524 ] 0x00001 ORI r 8, 00007 00000 | 00007 r 8( 0 / 0)=REGS[ 8] <= 0x00000 # [ 1552 ] 0x00002 JALRS r 8 r=00007 pc+1=00004 r 8( 0 / 0)=REGS[ 8] <= 0x00007 # [ 1580 ] 0x00003 LHI r 9, 00001 PASSB r11( 0 / 1)=REGS[ 19] <= 0x00004 # [ 1607 ] 0x00007 LHI r 0, 00000 PASSB r 9( 1 / 0)=REGS[ 9] <= 0x00200 # [ 1635 ] 0x00008 ORI r 0, 00086 00000 | 00086 r 0( 1 / 1)=REGS[ 0] <= 0x00000 # [ 1663 ] 0x00009 SRLI r 0, 00001 00086 >> 1 r 0( 1 / 1)=REGS[ 0] <= 0x00086 # [ 1691 ] 0x0000a MOVI2S r 0, s 4 s 4 <= 00043 r 0( 1 / 1)=REGS[ 0] <= 0x00043 # showmem 0 15 # 0 = 0 hex: 15000 0a8 000 # 1 = 1 hex: 1b007 0d8 007 # 2 = 2 hex: 02105 010 105 # 3 = 3 hex: 15201 0a9 001 # 4 = 4 hex: 1b3d4 0d9 1d4 # 5 = 5 hex: 02122 010 122 # 6 = 6 hex: 02015 010 015 # 7 = 7 hex: 14000 0a0 000 # 8 = 8 hex: 1a086 0d0 086 # 9 = 9 hex: 2c001 160 001 # 10 = a hex: 0209e 010 09e # 11 = b hex: 14037 0a0 037 # 12 = c hex: 1a1ff 0d0 1ff # 13 = d hex: 2c001 160 001 # 14 = e hex: 02164 010 164 # 15 = f hex: 28001 140 001 showmem 0x10 0x1f # 16 = 10 hex: 00000 000 000 # 17 = 11 hex: 001ba 000 1ba # 18 = 12 hex: 000cb 000 0cb # 19 = 13 hex: 000f9 000 0f9 # 20 = 14 hex: 000d8 000 0d8 # 21 = 15 hex: 000f2 000 0f2 # 22 = 16 hex: 00000 000 000 # 23 = 17 hex: 00000 000 000 # 24 = 18 hex: 00000 000 000 # 25 = 19 hex: 00000 000 000 # 26 = 1a hex: 06030 030 030 # 27 = 1b hex: 07430 03a 030 # 28 = 1c hex: 0603a 030 03a # 29 = 1d hex: 06030 030 030 # 30 = 1e hex: 01a00 00d 000 # 31 = 1f hex: 00000 000 000 showdmem 0x40 0x5f # Dump datamem = isructionmem 20 - 2f # 32 = 20 hex: 00000 000 000 # 33 = 21 hex: 00001 000 001 # 34 = 22 hex: 04000 020 000 # 35 = 23 hex: 00000 000 000 # 36 = 24 hex: 00000 000 000 # 37 = 25 hex: 00000 000 000 # 38 = 26 hex: 00000 000 000 # 39 = 27 hex: 00020 000 020 # 40 = 28 hex: 00020 000 020 # 41 = 29 hex: 00000 000 000 # 42 = 2a hex: 00000 000 000 # 43 = 2b hex: 00000 000 000 # 44 = 2c hex: 0002c 000 02c # 45 = 2d hex: 00040 000 040 # 46 = 2e hex: 00048 000 048 # 47 = 2f hex: 00000 000 000 showregs 0 # 0 0: 00043 000 043 # 1 1: 00000 000 000 # 2 2: 00000 000 000 # 3 3: 00000 000 000 # 4 4: 00000 000 000 # 5 5: 00000 000 000 # 6 6: 00000 000 000 # 7 7: 00000 000 000 # 8 8: 00007 000 007 # 9 9: 00200 001 000 # 10 10: 00000 000 000 # 11 11: 00000 000 000 # 12 12: 00000 000 000 # 13 13: 00000 000 000 # 14 14: 00000 000 000 # 15 15: 00000 000 000 showregs 1 # 0 0: 00043 000 043 # 1 1: 00000 000 000 # 2 2: 00000 000 000 # 3 3: 00000 000 000 # 4 12: 00000 000 000 # 5 13: 00000 000 000 # 6 14: 00000 000 000 # 7 15: 00000 000 000 # 8 16: 00000 000 000 # 9 17: 00000 000 000 # 10 18: 00000 000 000 # 11 19: 00004 000 004 # 12 20: 00000 000 000 # 13 21: 00000 000 000 # 14 22: 00000 000 000 # 15 23: 00000 000 000 quit
VSIM einrichten

VSIM-Protokoll "Transcript"
