mithro / vtr-verilog-to-routing

Verilog to Routing -- Open Source CAD Flow for FPGA Research
https://verilogtorouting.org
Other
2 stars 0 forks source link

Add support for adding parameter / attributes to grid locations #5

Open mithro opened 6 years ago

mithro commented 6 years ago

We want to be able to tag specific tile locations with attributes / parameters.

It would be good to enable us to tag locations with things like "this is tile X12Y136"

daveshah1 commented 6 years ago

Presumably in this case you would only consider tiles placed using <single>, rather than developing some kind of template formatting locations for <row> and <col> placed tiles (attributes applying to all tiles would be fine in this case though)?

This probably makes the most sense for importing tiles from icestorm/X-ray/Trellis anyway, when we start considering automatically building architectures for a range of devices.

mithro commented 6 years ago

I can imagine wanted to tag whole <row> and <col> or regions with some type of attributes / parameters...

One example of the idea is to be able to translate vpr coordinates into real tile names. This it to get the tile names shown here -> https://symbiflow.github.io/prjxray-db/artix7/gridinfo/gridinfo.html

You could do something like tag a column with something like this

<col type="CLBLM_L"    startx="5"  priority="10">
  <attributes>
    <attribute name='x_offset'>12</attribute>
    <attribute name='y_offset'>100</attribute>
    <attribute name='grid_prefix'>CLBLL_L_</attribute>
  </attributes>
</col>

Then a tool reading the vpr output knows it needs to rewrite the coordinates for these tiles by adding +12 and +100.

Project X-Ray Grid Viewer