Forum Discussion
1 Reply
- KennyT_altera
Super Contributor
Usually would be negedge
always @ (negedge <reset> or posedge <clock_signal>)
begin
// Reset whenever the reset signal goes low, regardless of the clock
if (!<reset>)
begin
<register_variable> <= 1'b0;
end
// If not resetting, update the register output on the clock's rising edge
else
begin
<register_variable> <= <data>;
end
end
You can right click the vhdl -> insert template -> verilog hdl-> logic -> register
Look into the details.
You can also look into https://www.intel.co.jp/content/dam/www/programmable/us/en/pdfs/literature/quartus2/qts_qii51006.pdf page 9-4
If you don't defined, there will be no reset port in your flop flop.