Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
129 Views

Problems when using FIFO IP for simulation

I defined a IP based on original Intel FIFO IP, and used in platform designer.

module adc_fifo(
 sink_clk,    //50MHz
 source_clk,   //75MHz
 reset_n,
 
 sink_avalonst_data,
 sink_avalonst_valid,
 sink_avalonst_ready,
 
 source_avalonst_data,
 source_avalonst_valid,
 source_avalonst_ready,
 
 fifo_ready
 );
 
 input    sink_clk;
 input    source_clk;
 input    reset_n;
 
 input [15:0]  sink_avalonst_data;
 input    sink_avalonst_valid;
 output    sink_avalonst_ready;
 
 output [63:0]  source_avalonst_data;
 output    source_avalonst_valid;
 input    source_avalonst_ready;
 
 output    fifo_ready;
 
 /********************************************************************************************************************************\
  part 0: Internal parameter
 \********************************************************************************************************************************/ 
 
 wire [8:0]    rdusedw;
 
 /********************************************************************************************************************************\
  part 1: FIFO
 \********************************************************************************************************************************/ 
 
 adcfifo fifo(
  .data  (sink_avalonst_data),
  .wrclk  (sink_clk),
  .wrreq  (sink_avalonst_valid),
  .q   (source_avalonst_data),
  .rdclk  (source_clk),
  .rdreq  (source_avalonst_ready),
  .rdusedw (rdusedw),
  .aclr   (~reset_n)
 );
 
 assign source_avalonst_valid = rdusedw[8] & reset_n;
 assign sink_avalonst_ready = (rdusedw < 9'd511);
 
 assign fifo_ready = rdusedw[8] & reset_n;
endmodule
 
 

It can not be successfully simulated in modelsim-intel. Based on IP, it requires altera_mf.

This is already in modelsim searched libraries. So I don't know why it still fails.

 

The error message is as below. adcfifo is qip I generated based on Intel FIFO IP.

adc_fifo.v(41): Instantiation of 'adcfifo' failed. The design unit was not found.

#         Searched libraries:
#             C:/intelFPGA/18.0/modelsim_ae/altera/verilog/altera
#             C:/intelFPGA/18.0/modelsim_ae/altera/verilog/220model
#             C:/intelFPGA/18.0/modelsim_ae/altera/verilog/sgate
#             C:/intelFPGA/18.0/modelsim_ae/altera/verilog/altera_mf
#             C:/intelFPGA/18.0/modelsim_ae/altera/verilog/altera_lnsim
#             C:/intelFPGA/18.0/modelsim_ae/altera/verilog/fiftyfivenm

 

1.JPG

 

0 Kudos
4 Replies
Highlighted
120 Views

adc_fifo.v(41): Instantiation of 'adcfifo' failed. The design unit was not found.
I guessing line 41 start from here:

 adcfifo fifo(
  .data  (sink_avalonst_data),
  .wrclk  (sink_clk),
  .wrreq  (sink_avalonst_valid),
  .q   (source_avalonst_data),
  .rdclk  (source_clk),
  .rdreq  (source_avalonst_ready),
  .rdusedw (rdusedw),
  .aclr   (~reset_n)
 );

Modelsim can't find the so-called adcfifo.v file and I guess the adcfifo.v is in the adcfifo.qip that you generated based on Intel FIFO IP. Add the qip in your project, compile and simulate again. 

0 Kudos
Highlighted
Novice
117 Views

Yes, the adcfifo.v is in the qip files. Actually I already include qip in below two methods, but it still doesn't work.

1) add qip through assignment - > setting - > files

2) add qip in platform designer -> component editor -> files -> both synthese file and simulation files.

0 Kudos
Highlighted
114 Views

Which Quartus version are you using? Standard or pro? 

Could you share your project so I can investigate further? A simplified design that can duplicate the issue will do.  

0 Kudos
Highlighted
Novice
106 Views

Quartus prime 18.0, standard version.

I just solved the issue by adding adcfifo.v in the component editor simulation files.

1) Add adcfifo.v  --> it works.

2) Add adcfifo.qip --> it doesn't work.

 

0 Kudos