PLI in Verilog in which we could model the RAM elements

Status
Not open for further replies.

m_mosazadeh

Member level 4
Joined
Apr 25, 2004
Messages
69
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,286
Location
iran
Activity points
350
verilog pli

hello all

can anyone help me?

I want to model large memories in verilog.But you know that for modeling for example 1M RAM memory about 32M in system is requierd.

so it will be fine if we could model the RAM elements in PLI.

can anyone help me for writing or finding such PLI?


with very best wishes
 

Re: verilog pli

m_mosazadeh said:
hello all
I want to model large memories in verilog.But you know that for modeling for example 1M RAM memory about 32M in system is requierd.

You need more memory if you make an array of multi-level logic values. Because each bit needs to hold values for '0', '1', 'X', ... you need more than 1 bit per bit stored. But if you first convert each 32-bit word to an integer, and then store it as an array of integers, you'll get much more memory efficient (and lose the 'X' functionality of course).

That's what I do in VHDL; I can't imagine that Verilog would be much different.
 

Re: verilog pli

"The Verilog PLI Handbook: A User's Guide and Comprehensive Reference on the Verilog Programming Language Interface"
(The Kluwer International Series in Engineering and Computer Science, Volume 666) -- by Stuart Sutherland; Hardcover (Rate it)
 

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