From 372717e070a53b3e04a960adc50a3f09f9d068f1 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 10 Aug 2007 14:25:34 +0100 Subject: [PATCH] bugfix in BitFifo: sign extend for now --- ships/BitFifo.ship | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.10.4