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.

Memory verification using testbench.

Status
Not open for further replies.

muthuram1984

Newbie level 6
Joined
Feb 7, 2012
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,388
Hi all,

Please explain how we can verify a Memory using testbench?..For example
i am writing data to a location 10 and reading from that location.but it is giving the data from the location 20......
so how can i verify that?

Thanks
ASICan
 

What HDL are you using?
 

What HDL are you using?

I am using Verilog HDL.But my doubt is how can we bring up this memory read problem using verilog test bench?
We can randomise the Address,payload data by using random constructs aparat from that how can we bring up this issue using our test bench?

Thanks
Muthu
 

Basically a testbench is a "wraper" of your module.
You drive signals to the input and see the waveform of internal logic and outputs.

I don't speak Verilog very well.
Do you know VHDL ?
 

Can you post your Verilog code? it would b much easier to answer.
Hi all,

Please explain how we can verify a Memory using testbench?..For example
i am writing data to a location 10 and reading from that location.but it is giving the data from the location 20......
so how can i verify that?

Thanks
ASICan
 

Instead of using HDL for verification go for HVL(hardware verification languages such as specman e/system verilog and specifically for memory verification you need to incorporate a checker in your testbench that will verify automatically wether the sent packet was reaed accurately from that particular memory to identify the correct data you can take addresss a s a reference and also append a CRC bit to make the comparison much better.
 

try like this

very first in verilog itself write a test bench.

use a concept called driver which it inter relates tb and your dut

in that driver concept you write all the routing connections
if you are good in writing tasks and functions write them in driver.

now write an another module : checker
now compare the the out put of test bench with driven values with respect to address

---------- Post added at 19:29 ---------- Previous post was at 19:25 ----------

instantiate all the modules in test bench this is important thing
instantiate dut,driver,checker
beware of port mapping.

checker:u can write effective way of checker by writing a model and compare the two outputs
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top