Dec 12, 2014 #1 O OS_cilloscope Newbie level 1 Joined Nov 21, 2014 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 6 I am going to use 128 point hamming window to be implemented in Vhdl. In matlab, I obtained the values of the hamming window as: h = hamming(128); But, what Matlab gave me is varying values in the range 0 and 1. How can I convert these values into 8-bit to use them in vhdl?
I am going to use 128 point hamming window to be implemented in Vhdl. In matlab, I obtained the values of the hamming window as: h = hamming(128); But, what Matlab gave me is varying values in the range 0 and 1. How can I convert these values into 8-bit to use them in vhdl?
Dec 12, 2014 #2 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 You will need to use fixed point - by default matlab uses floating point. in fixed point you can easily represent whatever number you want in VHDL.
You will need to use fixed point - by default matlab uses floating point. in fixed point you can easily represent whatever number you want in VHDL.