This commit is contained in:
iridiumR 2022-03-30 18:15:31 +08:00
parent 500301993e
commit c5e5f02c76
3 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ set_location_assignment PIN_31 -to enable_in
set_location_assignment PIN_46 -to Qout[0] set_location_assignment PIN_46 -to Qout[0]
set_location_assignment PIN_50 -to Qout[1] set_location_assignment PIN_50 -to Qout[1]
set_location_assignment PIN_52 -to Qout[2] set_location_assignment PIN_52 -to Qout[2]
set_location_assignment PIN_88 -to clk_in set_location_assignment PIN_89 -to clk_in
set_location_assignment PIN_43 -to code_out[6] set_location_assignment PIN_43 -to code_out[6]
set_location_assignment PIN_44 -to code_out[5] set_location_assignment PIN_44 -to code_out[5]
set_location_assignment PIN_39 -to code_out[4] set_location_assignment PIN_39 -to code_out[4]

View file

@ -8,7 +8,7 @@ begin
if(en == 1'b1) if(en == 1'b1)
begin begin
if(Q<3'd6) if(Q<3'd6)
Q <= Q + 1'b1; Q <= Q + 3'b1;
else else
Q <= 0; Q <= 0;
end end

View file

@ -14,7 +14,7 @@ always @ (in)
3'd3: out<=7'b0001111; 3'd3: out<=7'b0001111;
3'd4: out<=7'b0011111; 3'd4: out<=7'b0011111;
3'd5: out<=7'b0111111; 3'd5: out<=7'b0111111;
3'd6: out<=7'b0000000; 3'd6: out<=7'b0000000;
default: out=7'bx; default: out=7'bx;
endcase endcase