Why does following program shows error Q and D are not declared?
I wrote this program for an FIR filter and used D flip flop for delay. I needed to implement filter with Impulse response h(n) = {1, -1} Despite various efforts, it shows the same error that D and Q aren't defined/declared properly. There was another error saying Q has been illegally redeclared; for that, I deleted the line where I defined Q output register in the second module. Please point out the error and tell me how to fix it. module firfilter (dout, din, clock); input din, clock; output dout; parameter b0 = 1'd1; parameter b1 = 1'd1; assign dout = b0 - b1 * Q; always @(posedge clock) D <
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.