diff --git a/Quartus/v2/jyh_4490_2.qsf b/Quartus/v2/jyh_4490_2.qsf index ff52e1e..f0025f4 100644 --- a/Quartus/v2/jyh_4490_2.qsf +++ b/Quartus/v2/jyh_4490_2.qsf @@ -62,7 +62,7 @@ set_location_assignment PIN_31 -to enable_in set_location_assignment PIN_46 -to Qout[0] set_location_assignment PIN_50 -to Qout[1] 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_44 -to code_out[5] set_location_assignment PIN_39 -to code_out[4] diff --git a/Quartus/v2/jyh_4490_2_1.v b/Quartus/v2/jyh_4490_2_1.v index dcef47f..ffb92ec 100644 --- a/Quartus/v2/jyh_4490_2_1.v +++ b/Quartus/v2/jyh_4490_2_1.v @@ -8,7 +8,7 @@ begin if(en == 1'b1) begin if(Q<3'd6) - Q <= Q + 1'b1; + Q <= Q + 3'b1; else Q <= 0; end diff --git a/Quartus/v2/jyh_4490_2_2.v b/Quartus/v2/jyh_4490_2_2.v index fb71768..36c5767 100644 --- a/Quartus/v2/jyh_4490_2_2.v +++ b/Quartus/v2/jyh_4490_2_2.v @@ -14,7 +14,7 @@ always @ (in) 3'd3: out<=7'b0001111; 3'd4: out<=7'b0011111; 3'd5: out<=7'b0111111; - 3'd6: out<=7'b0000000; + 3'd6: out<=7'b0000000; default: out=7'bx; endcase