Hallo,

find appended two small patches.
The first removes an access to an nonexisting port.
The second patch removes access to non-existing bits.

Both changes allow me to run the softusb_navre files with iverilog.

Bye

-- 
Uwe Bonnes                b...@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 6af5c9dc1083366591d1fdc9dff8249150e9559e Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <b...@elektron.ikp.physik.tu-darmstadt.de>
Date: Sun, 12 Sep 2010 20:39:17 +0200
Subject: Remove access to non-existing code

---
 cores/softusb/test/tb_softusb.v |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/cores/softusb/test/tb_softusb.v b/cores/softusb/test/tb_softusb.v
index 4eee1b5..13f3d3e 100644
--- a/cores/softusb/test/tb_softusb.v
+++ b/cores/softusb/test/tb_softusb.v
@@ -205,8 +205,6 @@ softusb_tx tx(
        .tx_valid(tx_valid),
        .tx_ready(),
 
-       .generate_reset(1'b0),
-
        .txp(txp),
        .txm(txm),
        .txoe(txoe),
-- 
1.7.1
>From ad8cf77847aad4df2c0b5b747dc9568a11f85eb1 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <b...@elektron.ikp.physik.tu-darmstadt.de>
Date: Sun, 12 Sep 2010 20:40:15 +0200
Subject: Access only existing bits

---
 cores/softusb/rtl/softusb_navre.v |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cores/softusb/rtl/softusb_navre.v 
b/cores/softusb/rtl/softusb_navre.v
index b583ea4..c7d8e0e 100644
--- a/cores/softusb/rtl/softusb_navre.v
+++ b/cores/softusb/rtl/softusb_navre.v
@@ -870,7 +870,7 @@ always @(posedge clk) begin
                $display("%x", {1'b0, T, H, S, V, N, Z, C});
                $display("%x", SP[15:8]);
                $display("%x", SP[7:0]);
-               $display("%x", PC[14:7]);
+               $display("%x", PC[pmem_width-1:7]);
                $display("%x", {PC[6:0], 1'b0});
                tb_regress.dump;
                $finish;
-- 
1.7.1


_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkym...@freenode
Webchat: www.milkymist.org/irc.html
Wiki: www.milkymist.org/wiki

Reply via email to