Forum Discussion
Altera_Forum
Honored Contributor
16 years agoVerilog process not implemented correctly in Quartus
Hi, It seems as though the following synchronous process in Verilog is sometimes not implemented correctly by Quartus. Why? always @(posedge clk, negedge rst_n) if (!rst_n) begin ...
Altera_Forum
Honored Contributor
16 years agoThanks for all your replies, I appreciate it.
--- Quote Start --- What Quartus Version are you using ? --- Quote End --- 9.1 sp1 build 304 --- Quote Start --- if 1 compilation is working and 1 not, what about the others ? --- Quote End --- I have changed the coding to be more compliant with the recomended HDL coding guidelines, and it seems work properly for this compilation (then again it could be just a "lucky" compilation and the next one will fail again, as happened before). --- Quote Start --- one thing that i am not shure is, shouldn't you write always @(posedge clk or negedge rst_n) --- Quote End --- SystemVerilog --- Quote Start --- Did you specify the initial values for hdr_frame_length_s ? like reg [15:0] hdr_frame_length_s = 16'd1; or during initial begin hdr_frame_length_s = 16'd1; end // of initialiser block --- Quote End --- the code is synthesizable, register is initialized @ negedge rst_n --- Quote Start --- Do you get any warnings during compilation ? --- Quote End --- Not any that seem related