|
|
hai 3 meses | |
|---|---|---|
| .. | ||
| README.zh-CN.md | hai 3 meses | |
| check_env.py | hai 3 meses | |
| prod2u_hthd_fast_uart_top.v | hai 3 meses | |
| prod2u_hthd_prod_uart_top.v | hai 3 meses | |
| run_hthd_6400_pty_rtl.py | hai 3 meses | |
| run_hthd_pty_rtl.py | hai 3 meses | |
| run_setall_oracle.py | hai 3 meses | |
| run_uart_bit_e2e.py | hai 3 meses | |
| test_hthd_6400_pty_bridge.py | hai 3 meses | |
| test_hthd_pty_bridge.py | hai 3 meses | |
| test_provenance_binding.py | hai 3 meses | |
| test_uart_tap.py | hai 3 meses | |
export PROD2U_P4_COCOTB_PYTHON=/opt/hth-cocotb312/bin/python
export LIBPYTHON_LOC=/opt/python-3.12/lib/libpython3.12.so.1.0
export LD_LIBRARY_PATH=/opt/python-3.12/lib:$LD_LIBRARY_PATH
python3 host/tools/rtl_uart_cosim/run_setall_oracle.py --skip-missing
python3 host/tools/rtl_uart_cosim/run_uart_bit_e2e.py --skip-missing
/opt/hth-cocotb312/bin/python host/tools/rtl_uart_cosim/run_hthd_pty_rtl.py --skip-missing
仿真用 serial.io_timeout_ms / inter_byte_timeout_ms / response_timeout_ms 覆盖 Profile 默认值。生产 YAML 不要设置这些字段。
run_hthd_pty_rtl.py 使用 sim-only wrapper prod2u_hthd_fast_uart_top.v,把 UART CLKS_PER_BIT 降到 8,以便真实 hthd 进程能在主机 I/O 超时内完成 GET_MOTOR_STATUS。生产 RTL 源文件不改。比特级 217 clocks/bit 由 run_uart_bit_e2e.py 覆盖。
不要把 OSS CAD 的 vvp 包装脚本直接放进 PATH:它会设置 PYTHONEXECUTABLE=tabbypy3。应调用 libexec/iverilog + libexec/vvp(见 runner 里的 clean shim)。