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

Subversion Repositories oms8051mini

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

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
`ifdef SFLASH_SPDUP
18
`include "parameter_fast.v"
19
`else
20
`include "parameter.v"
21
`endif
22
 
23
module m25p20(c,data_in,s,w,hold,data_out);
24
   input c;
25
   input data_in;
26
   input s;
27
   input w;
28
   input hold;
29
 
30
   output data_out;
31
   ///reg data_out;
32
 
33
   wire [(`NB_BIT_ADD_MEM-1):0] adresse;
34
   wire [(`NB_BIT_DATA-1):0] dtr;
35
   wire [(`NB_BIT_DATA-1):0] data_to_write;
36
   wire [(`LSB_TO_CODE_PAGE-1):0] page_index;
37
 
38
   wire wr_op;
39
   wire rd_op;
40
   wire s_en;
41
   wire b_en;
42
   wire add_pp_en;
43
   wire pp_en;
44
   wire r_en;
45
   wire d_req;
46
   wire clck;
47
 
48
   assign clck = c ;
49
 
50
 
51
   memory_access  mem_access(adresse, b_en, s_en, add_pp_en, pp_en, r_en, d_req, data_to_write, page_index, dtr);
52
 
53
   acdc_check  acdc_watch(clck, data_in, s, hold, wr_op, rd_op);
54
 
55
   internal_logic  spi_decoder(clck, data_in, w, s, hold, dtr, data_out, data_to_write, page_index, adresse, wr_op, rd_op, b_en, s_en, add_pp_en, pp_en, r_en, d_req);
56
 
57
endmodule

powered by: WebSVN 2.1.0

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