Skip to content

Commit 12ef3a5

Browse files
committed
Add n25q128a11e 1.2
1 parent 75a8d03 commit 12ef3a5

4 files changed

+157
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
From 30a43cd1e3f0e11e556bdc67718a18ec4994d1a6 Mon Sep 17 00:00:00 2001
2+
From: Olof Kindgren <[email protected]>
3+
Date: Mon, 28 Nov 2016 12:14:33 +0100
4+
Subject: [PATCH 1/3] Increase max length for filenames
5+
6+
---
7+
N25Q128A11E_VG12/code/N25Qxxx.v | 10 +++++-----
8+
1 file changed, 5 insertions(+), 5 deletions(-)
9+
10+
diff --git a/N25Q128A11E_VG12/code/N25Qxxx.v b/N25Q128A11E_VG12/code/N25Qxxx.v
11+
index bce45ae..062ba4d 100644
12+
--- a/N25Q128A11E_VG12/code/N25Qxxx.v
13+
+++ b/N25Q128A11E_VG12/code/N25Qxxx.v
14+
@@ -128,10 +128,10 @@ inout Vpp_W_DQ2; //input Vpp_W, inout DQ2 (VPPH not implemented)
15+
16+
17+
//parameter [40*8:1] memory_file = "mem_Q016.vmf";
18+
-parameter [40*8:1] memory_file = `FILENAME_mem;
19+
+parameter [2048*8:1] memory_file = `FILENAME_mem;
20+
21+
// parameter [2048*8:1] fdp_file = "sfdp.vmf";
22+
-parameter [48*8:1] fdp_file = `FILENAME_sfdp;
23+
+parameter [2048*8:1] fdp_file = `FILENAME_sfdp;
24+
25+
26+
reg PollingAccessOn = 0;
27+
@@ -3703,7 +3703,7 @@ module Memory(mem_file);
28+
`include "include/DevParam.h"
29+
30+
31+
- input [40*8:1] mem_file;
32+
+ input [2048*8:1] mem_file;
33+
34+
//-----------------------------
35+
// data structures definition
36+
@@ -4338,7 +4338,7 @@ module UtilFunctions;
37+
38+
task load_memory_file;
39+
40+
- input [40*8:1] memory_file;
41+
+ input [2048*8:1] memory_file;
42+
43+
begin
44+
45+
@@ -7428,7 +7428,7 @@ module FlashDiscoveryParameter(sfdp_file);
46+
47+
48+
//input [2048*8:1] sfdp_file ;
49+
- input [48*8:1] sfdp_file ;
50+
+ input [2048*8:1] sfdp_file ;
51+
//-----------------------------
52+
// data structures definition
53+
//-----------------------------
54+
--
55+
2.7.3
56+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
From 8aba8dd386130ea93de5ab2e382cc83d79b5bcb8 Mon Sep 17 00:00:00 2001
2+
From: Olof Kindgren <[email protected]>
3+
Date: Mon, 28 Nov 2016 12:15:17 +0100
4+
Subject: [PATCH 2/3] Optionally disable mem clear on startup
5+
6+
---
7+
N25Q128A11E_VG12/code/N25Qxxx.v | 6 ++++--
8+
1 file changed, 4 insertions(+), 2 deletions(-)
9+
10+
diff --git a/N25Q128A11E_VG12/code/N25Qxxx.v b/N25Q128A11E_VG12/code/N25Qxxx.v
11+
index 062ba4d..75aac3b 100644
12+
--- a/N25Q128A11E_VG12/code/N25Qxxx.v
13+
+++ b/N25Q128A11E_VG12/code/N25Qxxx.v
14+
@@ -133,6 +133,7 @@ parameter [2048*8:1] memory_file = `FILENAME_mem;
15+
// parameter [2048*8:1] fdp_file = "sfdp.vmf";
16+
parameter [2048*8:1] fdp_file = `FILENAME_sfdp;
17+
18+
+parameter no_clear = 0; //Set param to disable slow memory clear on startup
19+
20+
reg PollingAccessOn = 0;
21+
reg ReadAccessOn = 0;
22+
@@ -346,7 +347,7 @@ assign W_int = Vpp_W_DQ2;
23+
// Modules instantiations
24+
//---------------------------
25+
26+
-Memory mem (memory_file);
27+
+Memory #(.no_clear(no_clear)) mem (memory_file);
28+
29+
UtilFunctions f ();
30+
31+
@@ -3703,6 +3704,7 @@ module Memory(mem_file);
32+
`include "include/DevParam.h"
33+
34+
35+
+ parameter no_clear = 0;
36+
input [2048*8:1] mem_file;
37+
38+
//-----------------------------
39+
@@ -3735,7 +3737,7 @@ module Memory(mem_file);
40+
41+
initial begin
42+
43+
- for (i=0; i<=memDim-1; i=i+1)
44+
+ for (i=0; i<=(no_clear ? 0 : memDim-1); i=i+1)
45+
memory[i] = data_NP;
46+
#1;
47+
48+
--
49+
2.7.3
50+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From ff38378c36c363c164ba54b1b39f22e882a921c4 Mon Sep 17 00:00:00 2001
2+
From: Olof Kindgren <[email protected]>
3+
Date: Mon, 28 Nov 2016 12:15:42 +0100
4+
Subject: [PATCH 3/3] Add workaround for Icarus Verilog
5+
6+
---
7+
N25Q128A11E_VG12/code/N25Qxxx.v | 2 ++
8+
1 file changed, 2 insertions(+)
9+
10+
diff --git a/N25Q128A11E_VG12/code/N25Qxxx.v b/N25Q128A11E_VG12/code/N25Qxxx.v
11+
index 75aac3b..c88c2c9 100644
12+
--- a/N25Q128A11E_VG12/code/N25Qxxx.v
13+
+++ b/N25Q128A11E_VG12/code/N25Qxxx.v
14+
@@ -2022,7 +2022,9 @@ always @(sendToBus) begin
15+
16+
17+
dtr_dout_started = 1'b1;
18+
+`ifndef __ICARUS__
19+
force DQ1 = 1'bX;
20+
+`endif
21+
if(N25Qxxx.DoubleTransferRate == 1) force DQ0 = 1'bX;
22+
if((cmdRecName == "Read Fast") ||
23+
(cmdRecName == "Dual Command Fast Read") ||
24+
--
25+
2.7.3
26+

n25q128a11e/n25q128a11e_vg12.core

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
CAPI=1
2+
[main]
3+
4+
name = ::n25q128a11e:1.2
5+
6+
patches =
7+
files/0001-Increase-max-length-for-filenames.patch
8+
files/0002-Optionally-disable-mem-clear-on-startup.patch
9+
files/0003-Add-workaround-for-Icarus-Verilog.patch
10+
11+
[fileset model]
12+
files =
13+
N25Q128A11E_VG12/code/N25Qxxx.v
14+
N25Q128A11E_VG12/include/Decoders.h[is_include_file]
15+
N25Q128A11E_VG12/include/DevParam.h[is_include_file]
16+
N25Q128A11E_VG12/include/PLRSDetectors.h[is_include_file]
17+
N25Q128A11E_VG12/include/TimingData.h[is_include_file]
18+
N25Q128A11E_VG12/include/UserData.h[is_include_file]
19+
N25Q128A11E_VG12/sim/sfdp.vmf[is_include_file]
20+
file_type = verilogSource
21+
22+
[provider]
23+
name = url
24+
filetype = tar
25+
url = https://www.micron.com/~/media/documents/products/sim-model/nor-flash/serial/bfm/n25q/n25q128a_micronxip_hold_18v_vg11,-d-,tar.gz

0 commit comments

Comments
 (0)