rahdirs
Advanced Member level 1
Hi,
I am trying to do the following in Verilog: if count < 8, pass the i/p to o/p, else multiply the i/p by -j. Note: i/p is a complex number.
My code:
I tried doing
by just putting -(out2_real_bf1). But o/p is all 0. I have attached the waveform.
I am trying to do the following in Verilog: if count < 8, pass the i/p to o/p, else multiply the i/p by -j. Note: i/p is a complex number.
My code:
Code:
always @(count,out2_complex_bf1,out2_real_bf1) begin
if (count >= 4'b1000) begin
out2_real_bf1_t <= out2_complex_bf1;
out2_complex_bf1_t <= (~(out2_real_bf1)) + 1;
end else
out2_real_bf1_t <= out2_real_bf1;
out2_complex_bf1_t <= out2_complex_bf1;
end
I tried doing
Code:
out2_complex_bf1_t <= (~(out2_real_bf1)) + 1;