Initialization of LUT value and Port Connection on my RW design #1139
Replies: 1 comment 2 replies
-
|
I am also still learning how to use this API, so this is a learning opportunity for me:
With that being said, the below statement correctly sets your "inv" LUT1 truth table to the expression: "O=!I0" However, this next statement sets your "delay" LUT1 truth tables to: "O=0", meaning the output is always 0 regardless of I0's value. There may or may not be a correct way to initialize the LUT truth table via .addProperty(), but the API does have a function to explicitly define the truth table as a sum of minterms equation via LUTTools::configureLUT(Cell c, String equation) like this: This should initialize your "delay" LUT1 with the equation "O=I0" instead of "O=0". https://www.rapidwright.io/javadoc/com/xilinx/rapidwright/design/tools/LUTTools.html
You should be able to see the new OBUF cell in the Schematic/Device windows. You can find more simple IO examples here: |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to initialize the launch Flip Flop to have the value 0 at the start when the bitstream programs the device (so the first value it will have as an output will be 0 and then it will change every time cause of the new input it will receive via the inverter). I can create the lut and connect it with nets etc but I'm not sure how to do this so that the initialisation lasts only for the first rising edge.
Secondly I want to connect the alarm to a certain register or an output port so I get each value it has every clock edge and I haven't been successful so far. You mentioned that I need these two commands (
create_cellto instantiate the IO and connect it to the net withconnect_net). Could you help me with this, perhaps an example with some made up IO port to connect the alarm.My RapidWright code:
For context if it helps, the circuit:
Beta Was this translation helpful? Give feedback.
All reactions