Giter VIP home page Giter VIP logo

edifier's People

Contributors

ptorru avatar vegaluisjose avatar

Stargazers

 avatar  avatar

Watchers

 avatar

edifier's Issues

Support for location

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"))
  )
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.