×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# i need help doing some question very very urgent plzzz

## i need help doing some question very very urgent plzzz

(OP)
1 Write VHDL code to implement an 8-bit one/zero/complement circuit. This circuit should have two select inputs S1,S0, eight data inputs X1,...,X8, and eight data outputs Y1,...,Y8. The outputs Y1,...,Y8, should be all 0s, all 1s, and the complements of X1,...,X8, respectively when S1S0=00,01,(10,11).
2 Write VHDL code to implement a 3-input 3-bit multiplexer. The select inputs are S0-S1, the data inputs are A2-A0, B2-B0, C2-C0, and the data outputs are Y2-Y0. The outputs Y2-Y0 should be equal to A2-A0,B2-B0,C2-C0 for the select-input combinations 00,01,10, respectively and should be zero when the select inputs are 11.
3 Indicate how the VHDL program in the above question must be modified if the Y outputs are floating when the select inputs are 11.
4 Determine logic expressions for the seven outputs of the seven-segment decoder. Use these expressions in a VHDL code to implement the device.
5 Design a 2-bit ALU to perform addition or subtraction.  The two input numbers have two bits, denoted by [A1,A0], and [B1,B0]. The output bits include Y1,Y0, representing either sum or difference, plus a carry or borrow bit C. Another input S is used to select an operation: if S=1, addition will be performed, and if S=0, subtraction will be performed.

In this question, you are required to (1) draw the truth table according to the problem description; (2) determine simplified expressions for 3 output bits, in terms of 5 input bits;
and (3) write a VHDL program to implement the ALU.

Replies continue below

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!