parameterization to the name of IO
See original GitHub issueCould you enlight me how to transmit a name to the IO by parameter?
class SRAMIO(my_np:Int=3, nm:String="ram1") extends Bundle {
val a = Input(Bool())
val b_$nm = Input(Vec(my_np,UInt(2.W)))
}
class sram extends Module {
val io = IO(new SRAMIO(4,"ram1"))
}
how can I tell it the $nm is my parameter?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Name of the parameter for the I/O assignment
Specify the name of a parameter. Add this parameter to the PLC discipline components. The value of the parameter in the discipline components...
Read more >IO-Link Parameterization Maximizes Functionality ...
Parameters are the key to maximizing performance and stretching sensor functionality on machines through IO-Link.
Read more >Data Parameterization
This page gives some examples of how to parameterize data in a test script. Parameterization is typically necessary when Virtual Users (VUs) will ......
Read more >Parameter I/O | Fusion 360
Enables the user to Import/Update parameters from or export them to a CSV (Comma Separated Values) file. When importing/updating parameters from a CSV...
Read more >Integration via URL parameters
A full list of URL parameters is available below, and can be used to do things like pass a shared App or Moderation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see. This is where I think something like setName comes into play, although there does need to be a distinction between setting the name of the final Verilog wire vs. more of a local naming.
String interpolation in wire names seems like what the original example was trying to do.