Skip to content

Commit

Permalink
Revert "Minor tweak to ICAP_core to remove a possible configuration d…
Browse files Browse the repository at this point in the history
…eadlock"

This reverts commit b1f3fc4.
  • Loading branch information
hoglet67 committed Dec 15, 2015
1 parent b1f19a0 commit 7d74cae
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/ICAP_core.v
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ module ICAP_core

reg [7:0] soft_dip = 8'b00000000;

assign test = 8'b0;
reg test_trig;

assign test = { clk_16M00, test_trig, busy, ff_icap_wr,
sw_in[0] ? icap_dout[3:0] :
(sw_in[1] ? icap_dout[7:4] :
(sw_in[2] ? icap_dout[11:8] :
(sw_in[3] ? icap_dout[15:12] : 4'b1010)))};

assign sw_out = powerup ? sw_in : soft_dip[3:0];

Expand Down Expand Up @@ -218,7 +224,7 @@ module ICAP_core

RD_LATCH_DATA:
begin
if (busy && !reconfigure) begin
if (busy) begin
next_state = RD_LATCH_DATA;
icap_ce = 0;
icap_wr = 1;
Expand Down Expand Up @@ -487,6 +493,11 @@ module ICAP_core
MBT_REBOOT <= MBT_REBOOT + 4'b0001;
state <= INIT;
end
if (state == RD_LATCH_DATA) begin
test_trig <= 1'b1;
end else begin
test_trig <= 1'b0;
end
if (state == RD_LATCH_DATA && !busy) begin
soft_dip <= icap_dout[7:0];
end
Expand Down

0 comments on commit 7d74cae

Please sign in to comment.