You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何修改Chisel3 IOTester生成的VCD文件的时间尺度?

之前我在Chisel2搭配C++后端的场景下问过类似问题,现在我正在基于Chisel3的IOTester(使用peek和poke方法)编写测试模板,相关的测试类代码如下:

class TapTempoUnitTester(t: TapTempo) extends PeekPokeTester(t) {
  private val tptmp = t
  def pushbutton(button: Bool) {
    poke(button, 0)
    step(1)
    poke(button, 1)
    step(10)
    poke(button, 0)
  }
  val tclk = 10
  val tus = 1000/tclk
  val tms = 1000*tus
  val ts = 1000*tms
  // 0
  pushbutton(tptmp.i...
}

内容的提问来源于stack exchange,提问作者FabienM

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 08:19:34