This repository has been archived on 2025-06-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
riscv-bluespec-classic/sim_inspect.tcl
Yehowshua Immanuel e44f6b083b it's been a while
2024-03-20 02:25:31 -04:00

15 lines
No EOL
320 B
Tcl

# bluetcl sim_inspect.tcl
namespace import ::Bluetcl::*
package require Bluesim
cd bram_tests
sim load simBRAM.so mkTestbench
set count_hdl [sim lookup count]
set bram [sim lookup dut1_memory]
sim step
sim step
sim step
puts "Value of count: [sim get $count_hdl]"
puts "Value of bram\[0:3\]: [sim getrange $bram 0 3]"