因为我们不能一直生成@(negedge clock or posedge capture)
到凿。而不是使用 blacbox 资源对文件进行 blacbox,我怎样才能对一行代码进行黑盒化always @(negedge clock or posedge capture)
if (capture)
out <= 1'b0;
else
begin
if (enable)
out <= in;
end
Chisel3 wiki中有一些关于使用黑盒的文档。chisel3/src/test/scala/chiselTests 中有许多示例,例如chiselTests/BlackBoxImpl.scala。
您是否对这些示例的工作方式有疑问,或者您是否正在寻找一些您没有找到的功能?