【问题标题】:How to integrate my testbench in chisel with a C++ library?如何将我的测试台与 C++ 库集成在凿子中?
【发布时间】:2020-09-29 18:24:53
【问题描述】:

我有一个使用 peekpoketester 的凿子测试台。我有一个要在测试台中使用的 C++ 库。有没有办法在 chisel/scala 中做到这一点?

【问题讨论】:

    标签: scala chisel


    【解决方案1】:

    Driver.execute 中可以添加一系列标志,让您控制用于编译 c++ 模拟器生成的命令行。

      -ttc, --test-command <value>
                               Change the command run as the backend. Quote this if it contains spaces
      -tmvf, --more-vcs-flags <value>
                               Add specified commands to the VCS/Verilator command line
      -tmvf, --more-vcs-c-flags <value>
                               Add specified commands to the CFLAGS on the VCS/Verilator command line
      -tvce, --vcs-command-edits <value>
                               a file containing regex substitutions, one per line s/pattern/replacement/
      -tmif, --more-ivl-flags <value>
                               Add specified commands to the ivl command line
      -tmicf, --more-ivl-c-flags <value>
                               Add specified commands to the CFLAGS on the ivl command line
      -tice, --ivl-command-edits <value>
                               a file containing regex substitutions, one per line s/pattern/replacement/
      -tmvlf, --more-vlog-flags <value>
                               Add specified commands to the vlog command line
      -tmvsf, --more-vsim-flags <value>
                               Add specified commands to the vsim command line startup
      -tmvsd, --more-vsim-do-cmds <value>
                               Execute specified commands within vsim interpreter before simulation run
      -tmvscf, --more-vsim-c-flags <value>
                               Add specified commands to the g++ vpi compilation command line for use with vsim backend
      -tvsce, --vsim-command-edits <value>
                               a file containing regex substitutions, one per line s/pattern/replacement/
    

    要查看此列表,只需将临时“--help”添加到传递给 Driver.execute 的参数和这些(以及许多其他选项将显示在您的输出中)

    这些选项或类似的东西也出现在ChiselTest新的chisel单元测试框架中

    【讨论】:

      猜你喜欢
      • 2023-03-26
      • 2021-04-17
      • 1970-01-01
      • 2019-06-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-10
      • 2013-05-06
      相关资源
      最近更新 更多