module top_module (
input clk,
input reset, // Synchronous reset
input [7:0] d,
output [7:0] q
);
always @(posedge clk) begin
if(reset) q <= 8'b0;
else q <= d;
end
endmodule
RESET
신호가 추가된 DFF (Synchronous)