From 175083842091e557fd737a5e56ee07d3d522a54a Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 10 Aug 2007 14:25:52 +0100 Subject: [PATCH] bugfix to Alu3 --- ships/Alu3.ship | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ships/Alu3.ship b/ships/Alu3.ship index e605f34..8daed2b 100644 --- a/ships/Alu3.ship +++ b/ships/Alu3.ship @@ -94,7 +94,8 @@ public void service() { out2_d <= (keep_in1 ^ keep_in2 ^ keep_in3) >> 1; out3_d <= 0; bitstorage_count <= bitstorage_count+1; - bitstorage[bitstorage_count] <= (keep_in1[0] ^ keep_in2[0] ^ keep_in3[0]); + bitstorage[bitstorage_count] = (keep_in1[0] ^ keep_in2[0] ^ keep_in3[0]); + outBits_d = bitstorage[(`DATAWIDTH-1):0]; wrote = 1; end have_out1 <= 1; @@ -107,10 +108,9 @@ public void service() { end if (!wrote && bitstorage_count >= `DATAWIDTH) begin - outBits_d <= bitstorage[(`DATAWIDTH-1):0]; `onwrite(outBits_r, outBits_a) begin bitstorage_count <= bitstorage_count - `DATAWIDTH; - bitstorage <= bitstorage >> `DATAWIDTH; + bitstorage = bitstorage >> `DATAWIDTH; end end end -- 1.7.10.4