This quiz required me to create 8 D flip-flops with active high synchronous reset. Here is my code for this quiz.
module top_module (
input clk,
input reset, // Synchronous reset
input [7:0] d,
output [7:0] q
);
always@(posedge clk)begin
if(reset==1)begin
q <= 0;
end
else begin
q <= d;
end
end
endmodule
Reference:https://hdlbits.01xz.net/wiki/Dff8r