Skip to content

Commit 0483bac

Browse files
committed
Add at25sf081 1.6
1 parent eedf425 commit 0483bac

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

at25sf081/at25sf081-1.6.core

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
CAPI=2:
2+
3+
name : ::at25sf081:1.6
4+
5+
filesets:
6+
model:
7+
files:
8+
- AT25SF081.v : {file_type : verilogSource}
9+
10+
targets:
11+
default:
12+
filesets : [model]
13+
parameters : [spi_flash_file]
14+
15+
parameters:
16+
spi_flash_file:
17+
datatype : file
18+
description : Initial SPI Flash contents (in Verilog hex format)
19+
paramtype : plusarg
20+
21+
provider:
22+
name : url
23+
url : https://www.adestotech.com/sites/default/files/tools_download/Verilog_AT25SF081.zip
24+
filetype : zip
25+
user-agent: FuseSoC
26+
patches : [files/0001-Support-memory-initialization-from-plusarg.patch]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From 7d3c05a954f8ee0d43da634e853c29de88bf6545 Mon Sep 17 00:00:00 2001
2+
From: Olof Kindgren <[email protected]>
3+
Date: Fri, 17 Aug 2018 13:17:24 +0200
4+
Subject: [PATCH] Support memory initialization from plusarg
5+
6+
---
7+
AT25SF081.v | 3 +++
8+
1 file changed, 3 insertions(+)
9+
10+
diff --git a/AT25SF081.v b/AT25SF081.v
11+
index 4eb520c..f0684d0 100644
12+
--- a/AT25SF081.v
13+
+++ b/AT25SF081.v
14+
@@ -435,12 +435,15 @@ module AT25SF081( SCLK,
15+
/*----------------------------------------------------------------------*/
16+
/* initial flash data */
17+
/*----------------------------------------------------------------------*/
18+
+ reg [1023:0] spi_flash_file;
19+
initial
20+
begin : memory_initialize
21+
for ( i = 0; i <= TOP_Add; i = i + 1 )
22+
ARRAY[i] = 8'hff;
23+
if ( CELL_DATA != "empty" )
24+
$readmemh("CELL_DATA",ARRAY) ;
25+
+ else if( $value$plusargs("spi_flash_file=%s", spi_flash_file) )
26+
+ $readmemh(spi_flash_file, ARRAY);
27+
28+
for( i = 0; i <= Secur_TOP_Add; i = i + 1 ) begin
29+
Secur_ARRAY[i]=8'hff;
30+
--
31+
2.16.4
32+

0 commit comments

Comments
 (0)