2020-10-23 13:26:18 +00:00
|
|
|
|
# compile_rtl.py
|
|
|
|
|
|
|
|
|
|
编译rtl代码。
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
`python compile_rtl.py [rtl目录相对路径]`
|
|
|
|
|
|
|
|
|
|
比如:
|
|
|
|
|
|
|
|
|
|
`python compile_rtl.py ..`
|
|
|
|
|
|
|
|
|
|
# sim_new_nowave.py
|
2020-05-27 15:43:35 +00:00
|
|
|
|
|
|
|
|
|
对指定的bin文件(重新生成inst.data文件)进行测试。
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
2020-10-23 13:26:18 +00:00
|
|
|
|
windows系统下:
|
|
|
|
|
|
|
|
|
|
`python sim_new_nowave.py ..\tests\isa\generated\rv32ui-p-add.bin inst.data`
|
|
|
|
|
|
|
|
|
|
Linux系统下:
|
|
|
|
|
|
|
|
|
|
`python sim_new_nowave.py ../tests/isa/generated/rv32ui-p-add.bin inst.data`
|
2020-05-27 15:43:35 +00:00
|
|
|
|
|
2020-10-23 13:26:18 +00:00
|
|
|
|
# sim_default_nowave.py
|
2020-05-27 15:43:35 +00:00
|
|
|
|
|
|
|
|
|
对已经存在的inst.data文件进行测试。
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
2020-10-23 13:26:18 +00:00
|
|
|
|
`python sim_default_nowave.py`
|
2020-05-27 15:43:35 +00:00
|
|
|
|
|
|
|
|
|
# test_all_isa.py
|
|
|
|
|
|
2020-10-23 13:26:18 +00:00
|
|
|
|
一次性测试../tests/isa/generated目录下的所有指令。
|
2020-05-27 15:43:35 +00:00
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
`python test_all_isa.py`
|
|
|
|
|
|
2020-12-06 12:07:06 +00:00
|
|
|
|
# test_jtag.py
|
|
|
|
|
|
|
|
|
|
测试JTAG的内存读、写功能。
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
`python test_jtag.py`
|
|
|
|
|
|