Skip to content

Commit

Permalink
Merge pull request #12 from ianmalcolm/jasper_devel
Browse files Browse the repository at this point in the history
Remove start_done and start_reg from i2c_master_byte_ctrl.v
  • Loading branch information
jack-h committed Mar 27, 2017
2 parents aaa0717 + f076089 commit d45775a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions jasper_library/hdl_sources/i2c/i2c_master_byte_ctrl.v
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,6 @@ module i2c_master_byte_ctrl (
//
reg [4:0] c_state; // synopsys enum_state

// Jack
reg start_reg = 1'b0;
reg start_done = 1'b0;
always @(posedge clk) begin
if (start) begin
start_reg <= start;
end else if (start_done) begin
start_reg <= 1'b0;
end
end

always @(posedge clk or negedge nReset)
if (!nReset)
begin
Expand Down Expand Up @@ -237,15 +226,13 @@ module i2c_master_byte_ctrl (
shift <= #1 1'b0;
ld <= #1 1'b0;
cmd_ack <= #1 1'b0;
start_done <= 1'b0;

case (c_state) // synopsys full_case parallel_case
ST_IDLE:
if (go)
begin
if (start_reg)
if (start)
begin
start_done <= 1'b1;
c_state <= #1 ST_START;
core_cmd <= #1 `I2C_CMD_START;
end
Expand Down

0 comments on commit d45775a

Please sign in to comment.