From: adam Date: Fri, 10 Aug 2007 13:25:34 +0000 (+0100) Subject: bugfix in BitFifo: sign extend for now X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=372717e070a53b3e04a960adc50a3f09f9d068f1;p=fleet.git bugfix in BitFifo: sign extend for now --- diff --git a/ships/BitFifo.ship b/ships/BitFifo.ship index caf1c9b..facf07d 100644 --- a/ships/BitFifo.ship +++ b/ships/BitFifo.ship @@ -373,12 +373,12 @@ public void service() { `onread(inEnqueue_r, inEnqueue_a) bitstorage <= inEnqueue_d; bitstorage_count <= 37; - outDequeue_d <= inEnqueue_d[0] ? 1'b1111111111111111111111111111111111111 : 0; + outDequeue_d <= (inEnqueue_d[0] ? 37'b1111111111111111111111111111111111111 : 0); end end else begin `onwrite(outDequeue_r, outDequeue_a) bitstorage_count <= bitstorage_count - 1; - outDequeue_d <= bitstorage[1] ? 1'b1111111111111111111111111111111111111 : 0; + outDequeue_d <= (bitstorage[1] ? 37'b1111111111111111111111111111111111111 : 0); bitstorage <= bitstorage >> 1; end end