sdtwigg / gama Goto Github PK
View Code? Open in Web Editor NEWchisel replacement
License: Other
chisel replacement
License: Other
Wire connect smashing can currently emit mux trees of signed and unsigned things together. Should ensure all sources are padded (using zero or sign extension depending on the source) or extracted to the wire length, THEN casted to the wire type, and then that is used to make the mux.
Alternatively, may be better to have a pass that 'tightens up' all connects. Could also tighten up expressions too in a different pass.
Not quite sure the best solution. Perhaps a new command entry?
Krste suggested a generalized solution for the rest issue is to allow connect statements to have attached priorities.
Could be somewhat easily implemented by having the connect journal sort based on priority.
For extraction operations, instead of merely taking an integer, be able to take the flag MSB or expression MSB - [integer]. After width inference, replace these with the appropriate numbers.
Note that before width inference, the width will likely be unknown (optionally, if the source width is known, could determine the output width or simply remove the MSB reference)
TODO: CONSIDER: Ensure that future passes don't add to the width of a RefExtract that has had MSB removed... or at least do it very carefully.
Rename to asUnsigned/assigned
This avoids confusion since operation applies to UInt in frontend and UBits in the backend.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.