Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

exam please help!! Complete the behavioral VHDL code of an Arithmetic Logic Unit that has 4 inputs A B, f and EN. A and B

image text in transcribed

exam please help!!

Complete the behavioral VHDL code of an Arithmetic Logic Unit that has 4 inputs A B, f and EN. A and B are 16 bits each, fis 3 bits and EN is 1 bit. The ALU has one output that has a size of 16 bits. The below table shows the behavior of the Logic Unit. Note that any change on any input will affect the output ENT S 0 x s will keep its value 1 000 S=A+B S=A-B 1 001 1 010 SEA 1 011 SEB 1 100 s is cleared 1 101 s will have its maximum value 1 110 All the bits of s are set to 1 1 Most significant byte of s equals most significant Byte of B 1 111 Least significant byte of s equals least significant Byte of A LIBRARY ieee : USE USE ENTITY alu IS PORT EN: : S: END alu: ARCHITECTURE Behavior OF alu IS BEGIN BEGIN If THEN CASE IS S ' > WHEN "010" => WHEN "011' => WHEN "100" => Sc= WHEN "110' => S

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

help asp

Answered: 1 week ago