FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2005, 02:59 PM
Nisheeth
Guest
 
Posts: n/a
Default Testbench

hello
i am new to vhdl and xilinx. using tutorials i was able to use
corgen for generating a core for DPRAM,multiplication , summation etc.
in dpram coregen i specified the ".coe" file which will be loaded in
it during simulation.
my project reads the data from dpram1 processes it and saves it
to dpram2. how to write a testbench that will save the results being
stored in dpram in a file for viewing it ? or should i say how to read
the contents of dpram2 after simulation is over ?
i really need a good practical tutorial on testbench...till now i m
using testbench waveform part of xilinx ise.


regards
nisheeth
Reply With Quote
  #2 (permalink)  
Old 02-28-2005, 06:24 PM
Mike Treseler
Guest
 
Posts: n/a
Default Re: Testbench

Nisheeth wrote:
> i am new to vhdl and xilinx. using tutorials i was able to use
> corgen for generating a core for DPRAM,multiplication , summation etc.
> in dpram coregen i specified the ".coe" file which will be loaded in
> it during simulation.


Coregen is the X-path to black-box design entry.
There is a similar A-path.
On these paths, an HDL netlist or a schematic
is used to wire up the black boxes.
Such netlists are sometimes loaded and tested by trial and error,
or tested using a waveform-based simulator.
The advantage to this path is that you can get
some work done without having to learn an HDL.
You can read all about this process on comp.arch.fpga

The alternative path is HDL synthesis and simulation.
Code written using standard synthesis templates
can generate equivalent logic, but can also be
tested *before* it is reduced to LUTS and flops
and even before a device is selected.
There is a reference design and testbench here:
http://home.comcast.net/~mike_treseler/
if you are interested in learning vhdl for synthesis
and simulation.

> my project reads the data from dpram1 processes it and saves it
> to dpram2. how to write a testbench that will save the results being
> stored in dpram in a file for viewing it ? or should i say how to read
> the contents of dpram2 after simulation is over ?


The purpose of a testbench is to verify that your
design module/entity responds to inputs exactly
as you expect. The simulator provides waveforms
for debugging, but the ultimate goal is a PASS/FAIL result.
Make the testbench do the work, so that you don't have to.

Good luck.

-- Mike Treseler
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Testbench.in testbench Verilog 1 06-11-2008 04:15 AM
testbench help jim FPGA 1 12-09-2006 06:41 PM
Testbench in C Dominique LUONG Verilog 4 12-06-2006 02:43 PM
USB 2.0 testbench available? johnp FPGA 2 12-28-2005 03:40 AM
Testbench help Matt Boland VHDL 1 01-23-2005 06:00 AM


All times are GMT +1. The time now is 12:20 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved