HDL OFDM Transmitter (whdl/WHDL​OFDMTransm​itterExamp​le) Issue

I am using the MATLAB example whdl/WHDLOFDMTransmitterExample. I have successfully generated both the HDL code and the corresponding testbench. However, when I simulate the design in Xilinx Vivado, I do not observe any activity on the output signals txData_re[15:0] and txData_im[15:0].
Despite running the provided testbench, these outputs remain static or undefined in simulation. I would appreciate guidance on any additional clock, reset, or clock-enable handling required in Vivado, or any known issues when simulating this example outside MATLAB.
Thanks in advance for your help.

 Risposta accettata

In the folder location , where you found the tb.v file, you will also find some files with extension .dat. Add them to the simulation sources in vivado and run the simulation. I think that should help.

Più risposte (1)

Karthik Akula
Karthik Akula il 31 Dic 2025
Modificato: Karthik Akula il 31 Dic 2025
Make sure if you are able to see activity of the same signals in MATLAB. If not, increase simulation time.
Also please make sure you are running the test bench file in vivado simulation.
If that doesn't solve, then
Need more info on "static or undefined." How do they look like ? Is it possible to give a step by step approach on how you simulated in vivado ? Right from opening the project.

1 Commento

In the matlab, when I run the simulink block diagram, I can see the spectrum in the scope.
I converted into HDl using makehdl and makehdltb cmds. In Xlinix vivado, When I simulate the top module (whdlOFDMTx) it transmit nothing.
Even I tried to force the handshaking but all in vain.
When I simulate it using your testbench it gives me following errors:
ERROR: File descriptor (0) passed to $fscanf in file /home/mr-aq/project_4/project_4.srcs/sources_1/imports/WHDLOFDMTransmitterExample/hdl_prj/hdlsrc/whdlOFDMTransmitter/OFDM_Transmitter_tb.v at line 736 is not valid.
ERROR in txData_re at time 850870000 : Expected 'xxxx' Actual '0000'
ERROR in txData_im at time 850870000 : Expected 'xxxx' Actual '0000'
ERROR in txValid at time 850870000 : Expected 'x' Actual '0'
ERROR: File descriptor (0) passed to $fscanf in file /home/mr-aq/project_4/project_4.srcs/sources_1/imports/WHDLOFDMTransmitterExample/hdl_prj/hdlsrc/whdlOFDMTransmitter/OFDM_Transmitter_tb.v at line 256 is not valid.
ERROR: File descriptor (0) passed to $fscanf in file /home/mr-aq/project_4/project_4.srcs/sources_1/imports/WHDLOFDMTransmitterExample/hdl_prj/hdlsrc/whdlOFDMTransmitter/OFDM_Transmitter_tb.v at line 298 is not valid.
ERROR: File descriptor (0) passed to $fscanf in file /home/mr-aq/project_4/project_4.srcs/sources_1/imports/WHDLOFDMTransmitterExample/hdl_prj/hdlsrc/whdlOFDMTransmitter/OFDM_Transmitter_tb.v at line 420 is not valid.
ERROR: File descriptor (0) passed to $fscanf in file /home/mr-aq/project_4/project_4.srcs/sources_1/imports/WHDLOFDMTransmitterExample/hdl_prj/hdlsrc/whdlOFDMTransmitter/OFDM_Transmitter_tb.v at line 736 is not valid.

Accedi per commentare.

Prodotti

Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by