Debug regressions: Add necessary config scripts
This commit is contained in:
19
scripts/RocketSim.cfg
Normal file
19
scripts/RocketSim.cfg
Normal file
@ -0,0 +1,19 @@
|
||||
adapter_khz 10000
|
||||
|
||||
interface remote_bitbang
|
||||
remote_bitbang_host localhost
|
||||
#$::env(REMOTE_BITBANG_HOST)
|
||||
remote_bitbang_port $::env(JTAG_VPI_PORT)
|
||||
|
||||
set _CHIPNAME riscv
|
||||
jtag newtap $_CHIPNAME cpu -irlen 5
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
target create $_TARGETNAME riscv -chain-position $_TARGETNAME -rtos riscv
|
||||
|
||||
riscv set_reset_timeout_sec 120
|
||||
riscv set_command_timeout_sec 120
|
||||
|
||||
init
|
||||
halt
|
||||
echo "Ready for Remote Connections"
|
16
scripts/RocketSim.py
Normal file
16
scripts/RocketSim.py
Normal file
@ -0,0 +1,16 @@
|
||||
import targets
|
||||
import testlib
|
||||
|
||||
class RocketSimHart(targets.Hart):
|
||||
pass
|
||||
|
||||
class RocketSim(targets.Target):
|
||||
harts = [RocketSimHart()]
|
||||
timeout_sec = 6000
|
||||
server_timeout_sec = 60*60
|
||||
openocd_config_path = "RocketSim.cfg"
|
||||
|
||||
def create(self):
|
||||
print "STARTING A SIMULATION"
|
||||
print self.sim_cmd
|
||||
return testlib.VcsSim(sim_cmd=self.sim_cmd, debug=False)
|
Reference in New Issue
Block a user