I have simulated (in ModelSim) all modules of my FPGA code that do not connect directly to the FPGA input pins, and the code works properly in simulation; however, it doesn't function properly in the actual hardware. I'm trying to add the acquisition block that acquires data at the FPGA inputs, but I can't figure out how to drive a DIO input in the testbench.
For example: I am acquiring 16 input signals. Without the application block, I created a U16 control with one bit for each signal and then drove the control using the NiFpga_Write function detailed in the NI-created testbench file. This worked fine.
Now I need to replace those controls with the actual FPGA inputs. I can't find anything on the forums or the NI co-simulation white papers about how to do this. Any ideas?