Forum Discussion
Altera_Forum
Honored Contributor
16 years agoThats the reason why i stay with verilog HDL as VHDL has so much typo for such simple stuff.
module counter_example { CLK, OUT1 Q }; input CLK; output OUT1; output [31:0] Q; always @ ( posedge CLK ) Q <= Q + 1; // or write 32'd1 to avoid warnings due to truncation always @ ( posedge CLK ) OUT1 <= CLK; endmodule // thats it stepping trough like c code, haven't seen that even on our SUN used for ASIC designs with much much more expensiv tools ($$$ per year)