I try to write and read data into FIFO with vhdl. Can FIFO accept fixed point package as their input/output?
I just know that FIFO accept only integer type. Need helps,thank you..
The FIFO doesnt care what the data is. What FIFO are you using? the Xilinx and Altera ones have just a std_logic_vector input, so you just do a type convert on the way in and out. Otherwise its quite easy to build a custom fifo that takes fixed point (for a single clock). On a dual clock system, its easier to stick with the altera/xilinx IP versions (they do not use integer).
I use Megafunction of Altera FIFO and as Tricky said the data type is std_logic_vector. I want to write/read fixed point package.
So, know I need to write code for a type conversion from fixed point to std_logic_vector (on the way in and out) right? Thanks for reply..
---------- Post added at 01:24 ---------- Previous post was at 01:22 ----------
fixed point to std_logic_vector (on the way in) and std_logic_vector to fixed point (on the way out) ?