diff --git a/.gitignore b/.gitignore index 397b4a7..dc313db 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.log +*.jed diff --git a/src/ft2004_top.v b/src/ft2004_top.v index c2aaa80..a12b13c 100644 --- a/src/ft2004_top.v +++ b/src/ft2004_top.v @@ -194,6 +194,8 @@ always @(posedge clk_1k) begin end // enable various votage groups. +// if `time_en == 1'b0, msclk_count always equal to `0` +// so power pins will stable. always @(posedge clk_1k) begin if (!power_on) begin case(msclk_count) @@ -213,7 +215,7 @@ always @(posedge clk_1k) begin power_on <= 1; end endcase - end else if (power_on == 1) begin + end else begin case (msclk_count) 16'd10: begin pcierst <= 4'h0; @@ -229,7 +231,6 @@ always @(posedge clk_1k) begin 16'd310: pwr_3v3_en <= 1'b0; 16'd1000: power_on <= 1'b0; endcase - end else begin end end