OpenCores
URL https://opencores.org/ocsvn/oms8051mini/oms8051mini/trunk

Subversion Repositories oms8051mini

[/] [oms8051mini/] [trunk/] [verif/] [agents/] [spi/] [st_m25p20a/] [parameter.v] - Blame information for rev 21

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dinesha
// Author: Mehdi SEBBANE
2
// May 2002
3
// Verilog model
4
// project: M25P20 25 MHz,
5
// release: 1.4.1
6
 
7
 
8
 
9
// These Verilog HDL models are provided "as is" without warranty
10
// of any kind, included but not limited to, implied warranty
11
// of merchantability and fitness for a particular purpose.
12
 
13
 
14
 
15
 
16
 
17
 
18
`define SIZE               2097152     // 2Mbit
19
`define PLENGTH            256         // page length
20
`define SSIZE              524288      // Sector size
21
`define NB_BPI             2           // number of BPi bits
22
`define SIGNATURE          8'b00010001 // electronic signature
23
`define BIT_TO_CODE_MEM    18          // number of bit to code a 2Mbits memory
24
`define LSB_TO_CODE_PAGE   8           // number of bit to code a PLENGTH page
25
 
26
`define NB_BIT_ADD_MEM              24
27
`define NB_BIT_ADD                  8
28
`define NB_BIT_DATA                 8
29
`define TOP_MEM                     (`SIZE/`NB_BIT_DATA)-1
30
 
31
`define MASK_SECTOR        24'hFF0000   // anded with address to find first sector adress to erase
32
 
33
`define   TRUE    1'b1
34
`define   FALSE   1'b0
35
 
36
 
37
`define TC     40          // Minimum Clock period
38
`define TR     50          // Minimum Clock period for read instruction
39
`define TSLCH  10          // notS active setup time (relative to C)
40
`define TCHSL  10          // notS not active hold time
41
`define TCH    18          // Clock high time
42
`define TCL    18          // Clock low time
43
`define TDVCH  5           // Data in Setup Time
44
`define TCHDX  5           // Data in Hold Time
45
`define TCHSH  10          // notS active hold time (relative to C)
46
`define TSHCH  10          // notS not active setup  time (relative to C)
47
`define TSHSL  100            // /S deselect time
48
`define TSHQZ  15          // Output disable Time
49
`define TCLQV  15          // clock low to output valid
50
`define THLCH  10          // NotHold active setup time
51
`define TCHHH  10          // NotHold not active hold time
52
`define THHCH  10          // NotHold not active setup time
53
`define TCHHL  10          // NotHold active hold time
54
`define THHQX  15          // NotHold high to Output Low-Z
55
`define THLQZ  20          // NotHold low to Output High-Z
56
`define TDP    3000        // notS high to deep power down mode
57
`define TRES1  3000        // notS high to Stand-By power mode w-o ID Read
58
`define TRES2  1800        // notS high to Stand-By power mode with ID Read
59
`define TW     15000000    // write status register cycle time (15ms)
60
`define TPP    5000000         // page program cycle time (5ms)
61
`define TSE    3000000000      // sector erase cycle time (3s)
62
`define TBE    6000000000      // bulk erase cycle time (6s)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.