rakeshk.r
Member level 2
Hi,
I am generating the uniform random numbers using the tap number table given in this url:
**broken link removed**
Below shows the snippet of the code generating the random number in VHDL.
Now I want to have this 39-bit random number in the range [0,1] then what should I do ? The suggestions you give should be synthesizable. Thank you.
I am generating the uniform random numbers using the tap number table given in this url:
**broken link removed**
Below shows the snippet of the code generating the random number in VHDL.
Code:
-- 39 bits tap no: 39,35 --
shf_reg(0) <= shf_reg(38);
shf_reg(34 downto 1) <= shf_reg(33 downto 0);
shf_reg(35) <= shf_reg(34) xnor shf_reg(38);
shf_reg(38 downto 36) <= shf_reg(37 downto 35);
Now I want to have this 39-bit random number in the range [0,1] then what should I do ? The suggestions you give should be synthesizable. Thank you.