ptorru / edifier Goto Github PK
View Code? Open in Web Editor NEWLike an emulsifier, edifier aims to allow you to mix rust and edif.
License: Apache License 2.0
Like an emulsifier, edifier aims to allow you to mix rust and edif.
License: Apache License 2.0
Split on...
The way i am currently using serde is giving me serialized strings that contain a lot of scape characters.
It would be nice to have support for the equivalent of "Verilog attributes" to express location information, including BEL, for every primitive. Interestingly, these attributes seems to be expressed in EDIF using property
, which it is also used for Verilog parameters
here it is an example of two equivalent programs one in Verilog and one in EDIF.
module main(input clock, input reset, input a, input b, output y);
(* LOC = "SLICE_X0Y0", BEL = "A6LUT" *)
LUT2 #(.INIT(4'h6)) i0 (.I0(a), .I1(b), .O(y));
endmodule
(edif main
(edifversion 2 0 0)
(edifLevel 0)
(keywordmap (keywordlevel 0))
(status
(written
(timeStamp 2021 06 24 15 59 35)
(program "Vivado" (version "2020.1"))
(comment "Built on 'Wed May 27 19:54:35 MDT 2020'")
(comment "Built by 'xbuild'")
)
)
(Library hdi_primitives
(edifLevel 0)
(technology (numberDefinition ))
(cell LUT2 (celltype GENERIC)
(view netlist (viewtype NETLIST)
(interface
(port O (direction OUTPUT))
(port I0 (direction INPUT))
(port I1 (direction INPUT))
)
)
)
(cell INV (celltype GENERIC)
(view netlist (viewtype NETLIST)
(interface
(port I (direction INPUT))
(port O (direction OUTPUT))
)
)
)
)
(Library work
(edifLevel 0)
(technology (numberDefinition ))
(cell main (celltype GENERIC)
(view main (viewtype NETLIST)
(interface
(port a (direction INPUT))
(port b (direction INPUT))
(port clock (direction INPUT))
(port reset (direction INPUT))
(port y (direction OUTPUT))
)
(contents
(instance i0 (viewref netlist (cellref LUT2 (libraryref hdi_primitives)))
(property INIT (string "4'h6"))
(property BOX_TYPE (string "PRIMITIVE"))
(property LOC (string "SLICE_X0Y0"))
(property BEL (string "A6LUT"))
)
(net a (joined
(portref I0 (instanceref i0))
(portref a)
)
)
(net b (joined
(portref I1 (instanceref i0))
(portref b)
)
)
(net y (joined
(portref O (instanceref i0))
(portref y)
)
)
)
)
)
)
(comment "Reference To The Cell Of Highest Level")
(design main
(cellref main (libraryref work))
(property part (string "xczu3eg-sbva484-1-e"))
)
)
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.