how to use memory in FPGA?????///

Status
Not open for further replies.

sid1986m

Newbie level 4
Joined
Sep 8, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,309
can anybody help me abt how to use memory in fpga (virtex 5)
 

you declare an array of registers and it will automatically infer a memory in a given fpga e.g.

reg [15:0] reg_file[0:15]

will infer a memory in an FPGA. I have tried this with XILINX FPGAs
 

Hi,
you can instantiate a (hard) SRAM using Xilinx Core Generator.
 

Thats another way too. Thanks Malek for pointing that out.
 

hi tariq and malek i will try for this and let u know

---------- Post added at 23:36 ---------- Previous post was at 23:02 ----------

hi tariq i have use ur method but what i want is i have to use this reg in in 2 different module in one module i have to write and in other module i have to read the same reg. thats y i m facing problem. can u help me?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…