Comments (4)
Thanks for filing this. I've been bitten by this when trying to produce FIRRTL and then re-parse it with firtool.
Note: I did open a Scala FIRRTL Compiler issue to add a custom transform that will sort modules so you can get them in a format that firtool won't barf on: chipsalliance/firrtl#1905
I'm not against changing this in the FIRRTL spec as def before use seems sound. This also simplifies some Scala FIRRTL compiler checks of instance cycles (which become impossible since FIRRTL has no forward declarations).
from circt.
Ah interesting, I guess the scala implementation does a topo sort before emitting the .fir files but that is not required.
from circt.
Fixed in 3d9ce44, huzzah
from circt.
It'd be worth taking a look at the FIRRTL project regression tests that dependent on this to see if they shake out any bugs now.
from circt.
Related Issues (20)
- [LLHD] Empty llhd.proc assertion failure HOT 1
- [FIRRTL] Lint XMRs in the "Design"
- [CI] LLVM Rebuild configuration suddenly broken? HOT 2
- [Arc] Add basic assertion support HOT 15
- [FIRRTL] Add back owning module constraint for local targets after removing use of ExtractInstances
- [HGLDD] Emit HW struct and array types
- Wiring problem error with const source and non-const sink w/no-ref-type option
- [FIRRTL][CheckCombLoops] Missing RWProbeOp support, crashes HOT 1
- [FIRRTL] LowerMemory change in #6719 leads to ambiguous targets in EmitOMIR HOT 3
- [Comb] Missed optimization opportunity for multiply used boolean operations
- [SV] SVExtractTestCode not Extracting Assert Properties
- [OM] parsing depend on the ordering of Class HOT 5
- [firrtl] extmodules with HasBlackBoxInline instantiated only in a layer not emitted into layers location
- [SMT] Add quantifier attribute and pattern support to ExportSMTLIB HOT 1
- [FIRRTL] Not generate "automatic logic" in the output SystemVerilog file HOT 2
- [FIRRTL] ‘firtool’ crashes with an error when receives a ‘fir’ file with no main module HOT 3
- [FIRRTL][InferWidths] When there is no unique minimal solution for width constraints, what should be the width? HOT 9
- Looking for circt==1.48.1.dev34 HOT 1
- [FIRRTL] isX lowering doesn't work for bundles HOT 2
- [FIRRTL] sizeof intrinsic doesn't work on bundles HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circt.