Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66855

drive FPGA inputs in ModelSim testbench

$
0
0

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?

 

 


Viewing all articles
Browse latest Browse all 66855

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>