Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Driving 1 bit off 2 clocks

 
Thread Tools Search this Thread
Old 03-24-2008, 09:36 PM   #1
Default Driving 1 bit off 2 clocks


I am working on implementing the MC6850 ACIA for academic purposes. The implementation requires that when data is written to the data register, the empty flag is set to zero and when the data is read from the register, it is set to 1 (to indicate empty).

The reading and writing are 2 different processes and I am not allowed to modify this same empty bit by 2 different processes. I am not sure how exactly to set this bit properly. Would somebody here be able to provide any advice? I'd really appreciate it.

Thank you,

Snooks


snooks
snooks is offline   Reply With Quote
Old 03-24-2008, 10:00 PM   #2
jeppe
Senior Member
 
Join Date: Mar 2008
Location: Denmark
Posts: 245
Default
Indeed - your not allowed to modify the same bit from two or more processes.

Your solution should be based on one process which uses asynchronous clear to modifify the bit (0 or 1) and clockes the oppersite value on eighter rising or falling edge.

Its your own chooise how this should be done.

An alternative solution could be to let the E-Clock (your system clock) trigger the F/F and then decide which value should be transfered (or the value should be kept)

Hope you got the meaning of this.

Your welcome
Jeppe


jeppe
jeppe is offline   Reply With Quote
Old 03-24-2008, 10:17 PM   #3
snooks
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default
Thanks again for your reply. I think I'll use the first approach you suggested and put everything into 1 process. I'll post here if I succeed .

Thanks again,
Sihanook


snooks
snooks is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP GridView hyperlinks driving me insane! WillC999 General Help Related Topics 0 10-28-2008 11:02 AM
email address driving me crazy annieaaron A+ Certification 3 04-05-2005 11:07 PM
this is driving me nuts! Michael A+ Certification 18 11-09-2004 02:07 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46