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

Reply

VHDL - 4 bit adder with overflow check

 
Thread Tools Search this Thread
Old 04-14-2007, 01:35 PM   #1
Default 4 bit adder with overflow check


Hi there,

I found this forum with google search, because I don't know any forum with VHDL topics.

I have successfully compiled a 4 bit adder with the port map method.
Now I want to check for an overflow and I've created a process that checks the last carry out.

But now I'am getting an error that my output bitvector has more than one sources. (Because VHDL is working parallel)

How can I fix this?

Here is my architecture: http://pastebin.sk/en/1320/

Thanks


hexler
hexler is offline   Reply With Quote
Old 04-16-2007, 10:47 AM   #2
martin.wahlstedt
Junior Member
 
Join Date: Mar 2007
Posts: 14
Default
The error is correct, if t4='1', you are driving the output from two sources. One thing you can do is to use an internal signal (out_temp) from the two-adders and extend the process to

process(t4) begin
if (t4 = '1') then
output <= "1111";
else output <= "out_temp";
end if;
end process;

/Martin


martin.wahlstedt
martin.wahlstedt 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
Obatin MCSE,CCNA,CCNP,ORACLE,JAVA And Many More Certs WithoutExams..Pay After Check Results..100% Passing Gaurantee certexpert MCTS 0 01-16-2009 12:41 PM
Obatin MCSE,CCNA,CCNP,ORACLE,JAVA And Many More Certs WithoutExams..Pay After Check Results..100% Passing Gaurantee EXAMSATHOME MCTS 0 12-26-2008 09:47 AM
100% Pass Without Exams Microsoft,Cisco,Comptia,Oracle,Sun,Java,CwnpAnd Many More( Pay After Check Results) EXAMSATHOME A+ Certification 0 11-23-2008 06:17 PM
Obtain Mcse,Ccna,Ccnp Without Exams( Pay After Check Results) 100%Passing Gaurantee Scr MCTS 0 06-19-2008 08:50 AM
Computer Security aldrich.chappel.com.use@gmail.com A+ Certification 0 11-27-2007 02:11 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