Forum Discussion
Altera_Forum
Honored Contributor
17 years agoI got it working using this configuration
CLK = 48000hz CLK ast_sink_valid = logic 1 ast_sink_error is stuck to ground (00) ast_source_ready = logic 1 But I have 7 lowpass filters and 24 bandpass filters and using parallel design takes to much LE:s. Below is my design in Simulink (easier to understand) http://static.pici.se/pictures/SACiIinKq.png I am using downsample and lowpass filters to look at 24 frequencies from 0 to 20000 hz. By downsampling I can use the same filters. Simulation works fine. I tried using muxing to use the same filter and sending it another clock speed and data from another lowpass filter since I only need to update my values about 6-10 times per second. Did not work, seems it doesn't like changing clock speed. So now I am using low order parallel filters. But since I have some time over (actually I have all the time in the world but me and my classmate want to start writing report next week) I have tried switching to serial filters since they take up less LE:s. So if you have gotten a serial filter to work please tell me how cause mine does not work. This is what I send my serial filters. CLK = tried using 50 MHz (my teacher told me to), then I tried using 8 times sample speed (have 8 bit resolution on my sound, 8 highest bits) then i tried using 15 bit resolution (15 highest bits) and clockspeed of 16 times higher clk speed then sample speed. The manual states that the filter in general (not always wtf?!) wants new data every "number of bits +1" clockcycle. So in my case 16 times the samplerate. ast_sink_valid = high one clockcycle in the same speed as samplespeed. as stated by manual see screenshot. In screenshot of simulation, CLK is 16 times samplerate, RST is high cause reset is active low. sink:reg is the counter from 0 to 15 to set S_VAL (sik_valid) high for one clockcycle. http://static.pici.se/pictures/QGIhWizqr.png ast_sink_error = stuck to ground (00) ast_source_ready = logical 1 one problem I figure could be it, next on my to do list, is that I always read the output and maybe I shouldn't do that. Still it should not cause these problems I have. Since well now just about nothing happens. If I press reset I see some diodes flashing quickly then nothing. This is my thesis work (well not just this but this is the hard part) and I dont really have to get these serial filters to works since I have a working design with parallel filters, but I want higher order filters. So anyone have a working serial filter I would be very VERY glad if you could help me.