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

Reply

VHDL - VHDL Beginner Help

 
Thread Tools Search this Thread
Old 11-05-2009, 02:36 AM   #1
Default VHDL Beginner Help


Hello, I am trying to learn how to utilize VHDL to implement various configurations of logic gates, etc. However, I am having a difficult time. Any help is appreciated. The problem is this:

1. Implement a 4 input AND gate using 3 2 input AND gates.

Basically what I have is A,B,C,D,F,G,H.

A and B go through an AND gate. Output is F.
C and D go through an AND gate. Output is G.

Then F and G go through an AND gate. Output is H.

Here's my code...which does not compile.

Code:
LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; ENTITY myAND1 IS PORT ( A,B,C,D: IN STD_LOGIC; F,G,H : OUT STD_LOGIC); END myAND1; ARCHITECTURE AND1 of myAND1 IS BEGIN F <= A AND B; END ARCHITECTURE AND1; ARCHITECTURE AND2 of myAND1 IS BEGIN G <= C AND D; END ARCHITECTURE AND2; ARCHITECTURE AND3 of myAND1 IS BEGIN H <= F AND G; END ARCHITECTURE AND3;

EDIT: I believe I have fixed it. Guess I was a little too hasty in posting.


Alterah

Last edited by Alterah : 11-05-2009 at 04:20 AM.
Alterah is offline   Reply With Quote
Old 11-06-2009, 11:21 AM   #2
debayan_p
Junior Member
 
Join Date: Jun 2009
Posts: 17
Wink
Take the VHDL book by Douglas Perry and solve the exercises given at the end of each chapter. That will solve ur problem !


debayan_p
debayan_p 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
Re: beginner kyohi Computer Information 23 03-15-2008 02:34 PM
Re: beginner Robert Maas, see http://tinyurl.com/uh3t Computer Information 3 02-11-2008 07:57 AM
Total beginner drops knitting and tries networking Suzy Wireless Networking 2 12-20-2007 12:49 AM
Help a beginner!!! =?Utf-8?B?U2Ft?= Wireless Networking 4 04-21-2005 07:50 AM
PCAnywhere: Beginner skim500 Computer Support 3 09-16-2004 04:58 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