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.

Modifying the name of the module that comes from Chisel Library.

See original GitHub issue

Type of issue: other enhancement

Impact: API addition (no impact on existing code)

Development Phase: proposal

What is the current behavior?

If I create a Module which from Chisel Library, for example, Queue, there will be a verilog module named Queue. In the meantime, if another person also creates a Queue, my Queue will conflict with his because two modules have the same name. But I can’t modify the name of Queue dynamically.

What is the expected behavior?

I want to generate modules of the Chisel Library with custom names. Maybe a better desiredName method will work. However, I can only do it like this:

class MyQueue[T <: Data](gen: T, entries: Int) extends Queue(gen, entries)
val mq = Module(new MyQueue(g, e))

Please tell us about your environment: - version: 3.2-SNAPSHOT - OS: Ubuntu 16.04

What is the use case for changing the behavior? Nothing.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:33 (14 by maintainers)

github_iconTop GitHub Comments

4reactions
jackkoenigcommented, Apr 4, 2019

Note that we do not currently support -moduleNamePrefix, I am proposing adding such support to Chisel3/FIRRTL, most likely as a FIRRTL transform.

2reactions
jackkoenigcommented, Apr 4, 2019

Chisel 2 provided a -moduleNamePrefix to add a prefix to each Module name. This is one approach to “namespacing” that could solve this issue. For example, you could provide -moduleNamePrefix StarBrilliance then you would have names like StarBrillianceQueue. Does this sound like a satisfactory solution @starbrilliance?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modifying the name of the module that comes from Chisel ...
If I create a Module which from Chisel Library, for example, Queue, there will be a verilog module named Queue. In the meantime,...
Read more >
Naming - Chisel/FIRRTL
This document explains how naming now works in Chisel for signal and module names. For cookbook examples on how to fix systemic name-stability...
Read more >
how to override/extend chisel signal naming - Stack Overflow
The easiest way to do this is to probably use a MultiIOModule . However, you can also do it with suggestName . Both...
Read more >
freechipsproject/chisel3 - Gitter
To change the name of your top module, you need to set it in the module ... ://www.chisel-lang.org/chisel3/docs/explanations/naming.html#set-a-module-name.
Read more >
Getting Started with Chisel
One thing to notice is that the clock signal and reset signals are implicitly attached to our design. module ShiftRegister(input clk, input ...
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