Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i just need help with with sel : 1010 -1111 2. Create an 8-bit ALU using a behavioral architecture with 1 entity and architecture must

i just need help with with sel : 1010 -1111 image text in transcribed
2. Create an 8-bit ALU using a behavioral architecture with 1 entity and architecture must appear in a file called alu_ns specification: library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity alu_n3 is generic positive :-8 ); port inputi in std_logic_vector (WIDTH-1 downt input2 : in std_logic_vector (WIDTH-1 downt sel in std_logic_vector (3 downto 0); output out std_logic_vector (WIDTH-1 downt overflow: out std_logic end alu_ns; Note that the width of the ALU is defined by a generic. architecture to work for any possible width (i.e., don't a operation of the ALU is described below: sel 0000 0001 0010 0100 0101 0111 1000 1001 1010 output inpucl + inputz (addition) inputi - Input2 (subtraction) inputl input2 (low half of the multiplication Result, e.g. multiplication of two this numbers results in a 16-bit number. The output should be the lover bita) Input. AND inputz input1 OR input2 Inputi XOR input2 Input. NOR input2 NOT Input Inputi > 1 Swap the high-habits o inputi with low-half bits of input1 (Ex.: input1 - 01011010, output - 10100103) Reverse the bits of inputi Ex.: input1 - 01010011, output - 11001010) 1011 1100-1111

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_2

Step: 3

blur-text-image_3

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

Students also viewed these Databases questions