The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 2nd, 2024, 7:23am
Pages: 1
Send Topic Print
ROM acess in VerilogA (Read 5939 times)
hali
New Member
*
Offline



Posts: 6

ROM acess in VerilogA
Feb 09th, 2010, 2:50am
 
Hi,I need help regarding ROM access in VerilogA cadence.I want to store a lookup table in ROM through VerilogA.I want to know how can i code this?or how to acess memory in verilogA? Undecided
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: ROM access in VerilogA
Reply #1 - Feb 9th, 2010, 6:07am
 
hali wrote on Feb 9th, 2010, 2:50am:
Hi,I need help regarding ROM access in VerilogA cadence.
I want to store a lookup table in ROM through VerilogA.
I want to know how can i code this?or how to acess memory in verilogA? Undecided
What do you want to do ?

Do you want to use competely same ROM access in Verilog-D ?
If so, use Verilog-AMS.

If you simply want to use some table written by ascii code, use $table_model() in Verilog-A.
See http://www.designers-guide.org/Forum/YaBB.pl?num=1239903838
Back to top
 
« Last Edit: Feb 9th, 2010, 4:40pm by pancho_hideboo »  
View Profile WWW Top+Secret Top+Secret   IP Logged
hali
New Member
*
Offline



Posts: 6

Re: ROM acess in VerilogA
Reply #2 - Feb 9th, 2010, 12:39pm
 
Thanks for the reply.But actually i want to store a look up table of 8b10b coding in the rom.
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: ROM access in VerilogA
Reply #3 - Feb 9th, 2010, 4:37pm
 
Do you understand Verilog-A, Verilog-D and Verilog-AMS ?

hali wrote on Feb 9th, 2010, 12:39pm:
But actually i want to store a look up table of 8b10b coding in the rom.
Available variables are 32bit integer and 64bit real in Verilog-A.  
Simply declare array of integer.
   "integer mem8b10b[0:9];"

You can write content of mem8b10b to file by "$strobe()".
You can read back content of file by "$table_model()".
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
hali
New Member
*
Offline



Posts: 6

Re: ROM acess in VerilogA
Reply #4 - Feb 11th, 2010, 1:29am
 
thank u so much.You reply helped me alot. Smiley
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: ROM access in VerilogA
Reply #5 - Feb 11th, 2010, 2:05am
 
It seems that your application is RAM not ROM.

Both "$strobe()" and "$table_model()" are not needed.
Back to top
 
« Last Edit: Feb 11th, 2010, 7:47am by pancho_hideboo »  
View Profile WWW Top+Secret Top+Secret   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.