cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sanhu
Contributor
Contributor
7,325 Views
Registered: ‎12-04-2014

how to initiate fifo with variable parameter in ise?

Core generator generated fifo has fixed width and depth. I want to write a moudle which has a fifo with variable width and depth. I want to set the fifo parameter at the time I initiate the module. How can I realize it? An example module like this follows.

 

module variable_fifo

(

    parameter data_width =8 ,      // default parameter, can be re-set when initiate variable_fifo

    parameter addr_width = 8 ,    // default parameter, can be re-set when initiate variable_fifo

    parameter fifo_depth  = 256  // default parameter, can be re-set when initiate variable_fifo

)

(

    // how to initiate xilinx fifo with above parameter ?

)

endmodule

 

0 Kudos
1 Reply
avrumw
Expert
Expert
7,311 Views
Registered: ‎01-23-2009

Short answer is "You can't" (at least not easily).

 

For a longer answer, see this thread.

 

Avrum