Jan 28, 2012 #1 P Padfoot3 Newbie level 5 Joined Jan 10, 2012 Messages 10 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,344 Hello, Can anyone tell me how to go about implementing this equation in VHDL: y = a0*x0+a1*x1+a2*x2+... where a0,a1 ... are constants Do I have to read the values of x and a from a text file ? Or can I specify the values in the code itself?
Hello, Can anyone tell me how to go about implementing this equation in VHDL: y = a0*x0+a1*x1+a2*x2+... where a0,a1 ... are constants Do I have to read the values of x and a from a text file ? Or can I specify the values in the code itself?
Jan 28, 2012 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,506 Helped 14,757 Reputation 29,796 Reaction score 14,128 Trophy points 1,393 Location Bochum, Germany Activity points 298,452 Re: DSP concepts in VHDL Do I have to read the values of x and a from a text file ? Or can I specify the values in the code itself? Click to expand... Borh is possible. In a real design the xn would be derived from an input signal, I guess. Or are you talking about simulated signals? You should firstly think of a suitable numeric format for signals and constants. The IEEE fixed point package is a convenient way-
Re: DSP concepts in VHDL Do I have to read the values of x and a from a text file ? Or can I specify the values in the code itself? Click to expand... Borh is possible. In a real design the xn would be derived from an input signal, I guess. Or are you talking about simulated signals? You should firstly think of a suitable numeric format for signals and constants. The IEEE fixed point package is a convenient way-