Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > VHDL > Re: new to vhdl
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 6116 of 6417
Post > Topic >>

Re: new to vhdl

by Mike Treseler <mike_treseler@[EMAIL PROTECTED] > Jun 26, 2008 at 10:58 AM

Vandana wrote:

> 1. Currently, in my code once i set the we(write_enable) or the
> re(read_enable) on I dont turn it off. the reason being, if i set them
> to 0 after the read/write operation, I dont see the desired data. So
> the we/re remains on even after the operation is complete. how to
> avoid this?

Write to the ram before you read it.

> 2. In cycles 45 -55 ns, I get undefined value in dout, after 55 ns, I
> again see the desired value. what is the reason for this?

You are reading before the write is finished.

> 3. This is the second testbench/vhdl code, so I have idea about the
> quality. Is it a very poor testbench?

It compiled and ran. Not bad for two days of work.

To avoid errors like this I prefer a sequential test process.
See my testbench example here.
http://mysite.verizon.net/miketreseler/

       -- Mike Treseler
 




 5 Posts in Topic:
new to vhdl
Vandana <nairvan@[EMAI  2008-06-26 08:53:14 
Re: new to vhdl
Mike Treseler <mike_tr  2008-06-26 10:58:11 
Re: new to vhdl
Tricky <Trickyhead@[EM  2008-06-27 01:12:12 
Re: new to vhdl
KJ <kkjennings@[EMAIL   2008-06-27 04:52:07 
Re: new to vhdl
Vandana <nairvan@[EMAI  2008-06-27 06:27:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 15:35:27 CST 2008.