同步清零以及同步置数。
module top_module (
input clk,
input reset, // Synchronous reset
input [7:0] d,
output [7:0] q
);
always@(posedge clk)begin
q <= (reset)?0:d;
end
endmodule
同步清零以及同步置数。
module top_module (
input clk,
input reset, // Synchronous reset
input [7:0] d,
output [7:0] q
);
always@(posedge clk)begin
q <= (reset)?0:d;
end
endmodule