Chisel
This class enables the definition of verilog parameters without having to to string building
class MyParams extends VerilogParameters { val MY_STR_PARAM = "FOO_BAR" val MY_INT_PARAM = 3 val MY_BOOL_PARAM = true }
This will generate a string
#( .MY_STR_PARAM("FOO_BAR"), .MY_INT_PARAM(3), .MY_BOOL_PARAM(TRUE) )
Set these parameters with
setVerilogParameters(new MyParams)
inside a BlackBox module or use
setVerilogParameters(myCustomString)
Get the string of verilog parameters
This class enables the definition of verilog parameters without having to to string building
This will generate a string
Set these parameters with
setVerilogParameters(new MyParams)
inside a BlackBox module or use