Xilinx / RapidWright

Build Customized FPGA Implementations for Vivado
http://www.rapidwright.io
Other
284 stars 109 forks source link

getPhysicalPinMapping where the logical pin maps to more than one physical pin #37

Closed daveshah1 closed 5 years ago

daveshah1 commented 5 years ago

When using a RAMB36E2, control inputs to the cell map to two physical bel pins (for the upper and lower halves) - see the below screenshot. Screenshot from 2019-06-19 17-01-22

Cell.getPhysicalPinMapping only returns a single String, and therefore only returns one of the physical pins that the cell pin maps to. It is possible to work around this by iterating over getPinMappingsP2L and looking for all the physical pins with a given logical pin mapping, but it would be nice to have a function that returned all the physical pins a logical pin maps to.

clavin-xlnx commented 5 years ago

This is a special case situation and is less common. I can add an API such as List<String> Cell.getAllPhysicalPinMappings(String logicalPinName) if that helps.

daveshah1 commented 5 years ago

Yes, I would find that a useful addition.

daveshah1 commented 5 years ago

Thanks, I can confirm Cell.getAllPhysicalPinMappings(String logicalPinName) in RapidWright 2019.1 is working for me.