byuccl / RapidSmith2

RapidSmith2 - the Vivado successor to RapidSmith. Released Jan 4, 2017.
Other
41 stars 13 forks source link

XDC constraints interface & XDC Constraint Package Pin #345

Closed DallonTG closed 6 years ago

DallonTG commented 6 years ago

This PR includes the following:

  1. An XDC Constraints interface that contains the methods for importing and exporting the constraints.xdc file. Methods that were formerly in VivadoInterface were moved here.
  2. XDC Constraint objects now have a comment string, in addition to the command and option strings for same-line comments.
  3. When XDC constraint objects are added to the design, if the constraint includes a PACKAGE_PIN property, a XDCConstraintPackagePin object is created with the names of the package pin and the port. This will occur for any constraints in these forms: set_property -dict { PACKAGE_PIN M20 IOSTANDARD LVCMOS33 } [get_port sw[0]]; set_property -dict { PACKAGE_PIN M19 IOSTANDARD LVCMOS33 } [get_ports { sw[1] }]; set_property PACKAGE_PIN M20
  4. Added the getPortConstraintMap() method to CellDesign to get a map of ports to the sites they are constrained to be placed on according to the constraints.xdc.