Help pls!!! clueless about VHDL

Status
Not open for further replies.

dirty_orifice

Newbie level 1
Joined
Jul 13, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Hi im trying to make a code for the following question but i am clueless as how to create the source code. Help pls........
 

Attachments

  • help....jpg
    56.2 KB · Views: 84

For now,you should think first about the algorithm without the seven segment display. Think of it as a C code. you have 4 cases : A>B , B>A, A=B, otherwise. You need to write an if statement for each case. you should write something like this :
if A>B then
output <= "1010";
elsif B>A then
.
. and so on . tell me if you need more help coz I don't know what's your knowledge in VHDL.
 


you should always draw the circuit before writing the VHDL
That's generally a good suggestion. The present problem has however one case, that can't be represented by a circuit, because it's not synthesizable. In other words, the problem refers to simulation and behavioral code only. (In my opinion, it isn't a well considered exercise)
 

hi
as am85 said go for algorithm first and think seven segment display later
use "A" and "B" as input (8bits) one output use "IF" statements
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…