remove strobe parts since it is on its own branch

This commit is contained in:
2020-10-25 20:37:32 -05:00
parent 6096187250
commit 4e192d5d70

View File

@@ -19,7 +19,6 @@ module top(i_clk, o_led, o_led_row_0, i_request, o_busy);
reg [WIDTH-1:0] counter;
reg [3:0] state;
reg [5:0] led_buf; // output buffer, take into account the icefun use active low LED
// reg strobe;
reg busy_buf;
wire req_buf;
@@ -30,7 +29,6 @@ module top(i_clk, o_led, o_led_row_0, i_request, o_busy);
initial begin
led_buf = 6'h0;
// {strobe, counter} = 0;
counter = 0;
state = 0;
busy_buf = 0;
@@ -46,13 +44,10 @@ module top(i_clk, o_led, o_led_row_0, i_request, o_busy);
always @(posedge clk_12MHz) begin
if (busy_buf)
counter <= counter + 1'b1;
// {strobe, counter} <= counter + 1'b1;
else
// {strobe, counter} <= 0;
counter <= 0;
end
// state change once strobe starts
always @(posedge clk_12MHz) begin
if (!busy_buf && req_buf)
state <= 4'h1;
@@ -64,7 +59,6 @@ module top(i_clk, o_led, o_led_row_0, i_request, o_busy);
// fsm for led_buf
always @(posedge clk_12MHz) begin
// if (strobe)
case (state)
4'h1: led_buf <= 6'b00_0001;
4'h2: led_buf <= 6'b00_0010;