Demo user design doubt #766
-
|
Hello everyone, I am reviewing the demo As I understand it, we are using pad0 and pad1 as inputs, but only pad0 is set accordingly. Also, the output is placed at the lower 16 bits of io_out , so the LSB of it would be lost from outside the eFPGA as pad0 is set as input. Am I understanding the code incorrectly or are the IOs incorrectly managed? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
When we simulate the fabric, we are not simulating a true tri-state IO pin; we are simulating it as individual input/output pins. If you check the code of We should have implemented a true tri-state construct to better model the IO for more accurate simulation and catch issues like this. So, the correct setting should have the bottom 2 bits set to input when using the fabric as the FPGA. |
Beta Was this translation helpful? Give feedback.


When we simulate the fabric, we are not simulating a true tri-state IO pin; we are simulating it as individual input/output pins. If you check the code of
IO_1_bidirectional_frame_config_pass.v, you can see that the input and output are independent, and the tri-state control is just a pass-through.We should have implemented a true tri-state construct to better model the IO for more accurate simulation and catch issues like this. So, the correct setting should have the bottom 2 bits set to input when using the fabric as the FPGA.