File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
com/liteeth/example_designs/test
mem/litesata/example_designs/test
tools/litescope/example_designs/test Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ def main(wb):
4
4
###
5
5
print ("sysid : 0x{:04x}" .format (regs .identifier_sysid .read ()))
6
6
print ("revision : 0x{:04x}" .format (regs .identifier_revision .read ()))
7
- print ("frequency : 0x{:04x}MHz" .format (regs .identifier_frequency .read ()/ 1000000 ))
7
+ print ("frequency : 0x{:04x}MHz" .format (int ( regs .identifier_frequency .read ()/ 1000000 ) ))
8
8
SRAM_BASE = 0x02000000
9
9
wb .write (SRAM_BASE , [i for i in range (64 )])
10
10
print (wb .read (SRAM_BASE , 64 ))
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ def main(wb):
4
4
###
5
5
print ("sysid : 0x{:04x}" .format (regs .identifier_sysid .read ()))
6
6
print ("revision : 0x{:04x}" .format (regs .identifier_revision .read ()))
7
- print ("frequency : 0x{:04x}MHz" .format (regs .identifier_frequency .read ()/ 1000000 ))
7
+ print ("frequency : 0x{:04x}MHz" .format (int ( regs .identifier_frequency .read ()/ 1000000 ) ))
8
8
###
9
9
wb .close ()
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ def main(wb):
4
4
###
5
5
print ("sysid : 0x{:04x}" .format (regs .identifier_sysid .read ()))
6
6
print ("revision : 0x{:04x}" .format (regs .identifier_revision .read ()))
7
- print ("frequency : 0x{:04x}MHz" .format (regs .identifier_frequency .read ()/ 1000000 ))
7
+ print ("frequency : 0x{:04x}MHz" .format (int ( regs .identifier_frequency .read ()/ 1000000 ) ))
8
8
###
9
9
wb .close ()
You can’t perform that action at this time.
0 commit comments