Answered! I finished the first part and its code below: architecture Behavioral of alu is begin process(a,b,s) is…

I finished the first part and its code below:

architecture Behavioral of alu is

begin
process(a,b,s) is

begin

case s is

when “00” => result <= a and b;
when “01” => result <= a or b;
when “10” => result <= a xor b;

4. Write the VHDL code for the 1-bit ALU with three functions shown in the Figure: 1-bit ALU Operation Operation 00 and 01 or 10 XOR 1 H r Result 5. Extend the ALU in problem four to 4-bit and writ the VHDL code for it.

Expert Answer

 architecture Behavioral of alu is

begin
process(a,b,s) is

begin

case s is

when “00” => result <= a and b;
when “01” => result <= a or b;
when “10” => result <= a xor b;

Still stressed from student homework?
Get quality assistance from academic writers!