question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

parameterization to the name of IO

See original GitHub issue

Could 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:closed
  • Created 6 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jackkoenigcommented, Aug 7, 2017

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.

1reaction
ducky64commented, Aug 7, 2017

String interpolation in wire names seems like what the original example was trying to do.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found