Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use cpld as eeprom as non v0latile memory ?

Status
Not open for further replies.

Lokesh Waran

Junior Member level 1
Joined
Sep 18, 2013
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
168
Dear friends ,

I want to store some data in to the CPLD -XC9572 Series device as non volatile information for the purpose of read that data when i need to receive that bits .Bec in my knowledge CPLD is the EPROM Technology basis ,So any one can clarify this doubt ??????????????????????????????? i am tried to store the data using verilog HDL coding below but the data which i have written in to the device is lost after switch of the device power sourse. thanking you for your information if u post answer for this drawback.


Code Verilog - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module eeprom (
address , // Address input
data    , // Data output
read_en , // Read Enable 
ce      , // Chip Enable
oe      ,
out     ,
write_en    
);
input [2:0] address;
input [2:0] data; 
output out;
input read_en; 
input  write_en; 
input ce;
input oe; 
           
reg [2:0] mem [0:6] ; 
reg  out=0 ; 
 
always @( read_en or ce or write_en or oe or address or data)
begin 
 
if ( ce &&  write_en)  
    mem[address]<= data;
     
 
if (oe && read_en)
    out <= mem [address];  
   
 
end 
 
endmodule

 
Last edited by a moderator:

While the design implementation programmed into the CPLD is nonvolatile, this by no meanings implies any data stored into the memory implementation is nonvolatile.

Data stored within the an implementation of RAM memory is volatile, regardless of whether the actual design implementation programmed into the device, CPLD or FPGA, is volatile or nonvolatile.

BigDog
 

While the design implementation programmed into the CPLD is nonvolatile, this by no meanings implies any data stored into the memory implementation is nonvolatile.

Data stored within the an implementation of RAM memory is volatile, regardless of whether the actual design implementation programmed into the device, CPLD or FPGA, is volatile or nonvolatile.

BigDog

i guess the way to do it is via jtag, then it can be used as a jpag eeprom.
so you will need to implement the jtag controller with a cpu.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top