I've seen a mention of "first class parameter support" in
this post - any progress in that direction? I'm asking because I'd really like to use Verilog module parameters in Chisel generated modules, e.g.
class MyBusModule extends Module {
val R_DATA_WIDTH = ModuleParam[Int](default = 32)
...
val io = new Bundle {
...
val r_data = UInt(OUTPUT, R_DATA_WIDTH)
...
}
}
which in my vivid imagination would produce something like
module MyBusModule #(
parameter integer R_DATA_WIDTH = 32;
)
(
...
io_r_data
);
input [R_DATA_WIDTH - 1 : 0] io_r_data;
...
endmodule
Will Chisel support something similar in the foreseeable future?