add patch for n25q to fix model using fork/join, should be begin/end
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 29 Mar 2022 10:58:32 +0000 (11:58 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 29 Mar 2022 10:58:49 +0000 (11:58 +0100)
qspi_model/README.txt [new file with mode: 0644]
qspi_model/n25q.patch [new file with mode: 0644]

diff --git a/qspi_model/README.txt b/qspi_model/README.txt
new file mode 100644 (file)
index 0000000..52f57f2
--- /dev/null
@@ -0,0 +1,9 @@
+* download micron n25q model:
+https://media-www.micron.com/-/media/client/global/documents/products/sim-model/nor-flash/serial/bfm/n25q/n25q_256mb_18v_micronxip_vg15,-d-,tar.gz?rev=20813bd927aa4890863866045fd77241
+* at line 2039 and 2065 change "fork : CP_sendToBus"   and "join"
+  to                            "begin : CP_sendToBus" and "end"
+  (see n25q.patch)
+
+the micron n25q model contains the following copyright notice:
+Copyright 2013 Micron Technology, Inc. All rights reserved.
+(no license given, disclaimer noted)
diff --git a/qspi_model/n25q.patch b/qspi_model/n25q.patch
new file mode 100644 (file)
index 0000000..be0e5cd
--- /dev/null
@@ -0,0 +1,20 @@
+--- N25Q256A11E_VG15/code/N25Qxxx.v.orig       2022-03-29 11:57:06.744320437 +0100
++++ N25Q256A11E_VG15/code/N25Qxxx.v    2022-03-29 11:57:09.692322067 +0100
+@@ -2036,7 +2036,7 @@
+     -> sendToBus_stack;
+   #0;
+   if(die_active == 1 ) begin
+-    fork : CP_sendToBus
++    begin : CP_sendToBus
+       dtr_dout_started = 1'b1;
+@@ -2062,7 +2062,7 @@
+         force DQ1 = bitOut;
+       // end
+-    join
++    end
+   end
+ end