Comments (2)
I think we can to expose the chisel type via compiler plugin like what we did in the source info. But what on earth is a chisel type? That’s the fundamental question(we need specification)
from circt.
I think we can to expose the chisel type via compiler plugin like what we did in the source info.
I already managed to expose source level information from chisel to firrtl and firtool. In the meantime I also managed to read this information from firtool, processing it into proper debug variables and updating hgldd/emitting a new file format.
But what on earth is a chisel type? That’s the fundamental question(we need specification)
Whit chisel type refer to the type of the scala variable in the source chisel code.
In the following example:
class MyBundle(size: Int) extends Bundle {
val a = Bool()
val b = SInt(size.W)
val nested = new Bundle {
val x = UInt(8.W)
}
}
val inBundle = IO(Input(new MyBundle(10)))
val wireBundle = Wire(new MyBundle(7))
val outBundle = IO(Output(new MyBundle(9))))
The types would be
Variable | Type |
---|---|
inBundle | IO[MyBundle(10)] |
wireBundle | Wire[MyBundle(7)] |
outBundle | IO[MyBundle(9)] |
inBundle.a | IO[Bool] |
inBundle.b | IO[SInt<10>] |
inBundle.nested | IO[AnonymousBundle] |
inBundle.nested.x | IO[UInt<8>] |
... | ... |
Namely, I refer to anything represented in this table, including user-defined types:
https://raw.githubusercontent.com/chipsalliance/chisel/main/docs/src/images/type_hierarchy.svg?sanitize=true
This is basically the information I'm trying to emit in a file format similar to hgldd: chipsalliance/chisel#4015 (comment)
from circt.
Related Issues (20)
- [Seq] Unify HLMem and FIRMem HOT 2
- [ImportVerilog] Upgrade slang to slang 5
- [Seq] FirReg is not appropriate for the seq dialect
- [Seq] Add reset type
- CombDataflow op interface should not exist in the HW dialect HOT 1
- [FIRRTL] LowerLayers creates empty port names, preventing round-trip
- [FIRRTL] InferResets: deleting op used to drive reset network results in use-after-free
- [FIRRTL] Add optional arg name to DPI-C functions
- [FIRRTL] DPI type check should not check the reference type. HOT 2
- [FIRRTL] Constant will be elimated on the DPI Path HOT 3
- [FIRRTL] When passing Reg to DPI, it will trigger the comb logic cycle error.
- [Arcilator] Performance Issue HOT 2
- [CI] Nightly integration test failure HOT 13
- [ESI] Add target-attached include directory for cosim targets HOT 2
- Or-tools and gRPC conflict HOT 1
- [ESI] RPCServer::registerReadPort provides no way to register callback port HOT 1
- Bumping LLVM causes issue with dialect conversion in LLHDToLLVM
- [FIRRTL] Update rationale mentioning use of IntegerAttr for port directions
- [FIRRTL] Move `lib/Firtool` and `lib/Reduce` under `lib/Tools`? HOT 2
- [FIRRTL] OM/InnerSyms/Zero-width HOT 2
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.