简体   繁体   English

Scala 凿子。 具有 2-d verilog 端口的 BlackBox

[英]Scala Chisel. BlackBox with 2-d verilog ports

In my scala chisel project I need to insert system-verilog blackbox with 2-d arrays of ports.在我的 scala 凿子项目中,我需要插入带有二维 arrays 端口的 system-verilog 黑盒。 For example:例如:

module something_bb(
  input  [`somtething_width-1     :0] something_i      [`somtething_num-1    :0],
  output [`somtethingelse_width-1 :0] somethingelse_o  [`somtethingelse_num-1:0]
)

---
endmodule

Can you tell me the easiest way to do it?你能告诉我最简单的方法吗?

Unfortunately that is not supported by Chisel.不幸的是,Chisel 不支持这一点。 You will have to write a Verilog wrapper, that exposes your 2D ports as 1D ports and then instantiate the wrapper as a Chisel blackbox.您必须编写一个 Verilog 包装器,将 2D 端口公开为 1D 端口,然后将包装器实例化为 Chisel 黑盒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM