Modifying the name of the module that comes from Chisel Library.
See original GitHub issueType 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:
- Created 4 years ago
- Reactions:2
- Comments:33 (14 by maintainers)
Top 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 >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
Note that we do not currently support
-moduleNamePrefix
, I am proposing adding such support to Chisel3/FIRRTL, most likely as a FIRRTL transform.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 likeStarBrillianceQueue
. Does this sound like a satisfactory solution @starbrilliance?