Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,799 Views

BCD 2 digit Adder

Hi guys, im doing a project for a course. 

we are making a BCD adder ( first by making full adder , 4 bits adder, then use 4 bit adder to make the BCD adder) 

the system will add 6 if the sum is more than 10 

i have problems with adding 6 here's a photo 

 

https://alteraforum.com/forum/attachment.php?attachmentid=14059&stc=1  

 

https://alteraforum.com/forum/attachment.php?attachmentid=14060&stc=1 https://alteraforum.com/forum/attachment.php?attachmentid=14061&stc=1  

 

i have that problem b[2], b[1] drives an input pin. 

 

i learned to use quartus today. Sadly my instructor asked us to learn it by ourselves and i got tried can you help me. Thanks in advance.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
362 Views

Well, since this is now over a month old, I'll try to point you in the right direction.  

Most of these problems can be solved by carefully reading the error messages.  

In this case it says Signal "b[2]" drives an input pin. What this means is that vector (or multi-bit) signal is used to drive(output) a signal on an input pin.  

You cannot use an input pin as an output, only as an input. You can only use it to drive an input of a module lower in the hierarchy (such as the 4bitadder). 

 

A tip for the next time, just post the errors in text, the image resolution makes it difficult to read. 

 

p.s. Do you study at the HHS by any chance?
Reply