Professional Documents
Culture Documents
Lab 08 Computer Architecture
Lab 08 Computer Architecture
Lab 08 Computer Architecture
if (!Resetn)
begin
else
endmodule
module test_ring_counter; reg Resetn, Clock; wire [7:0] Q; ring_count asdxxc(Resetn, Clock, Q);
always #2 Clock=~Clock;
initial
begin
Resetn=0; Clock=1;
#10 Resetn=1;
end
endmodule
always #5 Clock=~Clock;
initial begin
Clock=1;Resetn=1;
#10 Resetn=0;
end