0% found this document useful (0 votes)
22 views

Prof. Marwan Torki Eng. Ahmed Elmorsy Eng. Heba Aly

This document provides instructions for a digital design lab assignment. Students are asked to design and implement a 16-bit arithmetic logic unit (ALU) that supports 11 different operations: transfer, add, add with carry, subtract, subtract with borrow, increment, decrement, AND, OR, XOR, and NOT. The ALU takes two 16-bit operands, a 4-bit operation code, and a carry/borrow bit as inputs. It produces a 16-bit result, a carry/borrow out bit, and flags for overflow, negative, and zero as outputs. Students must test their ALU design using a test bench with meaningful test cases. Their report on the assignment is due April 9th and must include the problem

Uploaded by

Hanan Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Prof. Marwan Torki Eng. Ahmed Elmorsy Eng. Heba Aly

This document provides instructions for a digital design lab assignment. Students are asked to design and implement a 16-bit arithmetic logic unit (ALU) that supports 11 different operations: transfer, add, add with carry, subtract, subtract with borrow, increment, decrement, AND, OR, XOR, and NOT. The ALU takes two 16-bit operands, a 4-bit operation code, and a carry/borrow bit as inputs. It produces a 16-bit result, a carry/borrow out bit, and flags for overflow, negative, and zero as outputs. Students must test their ALU design using a test bench with meaningful test cases. Their report on the assignment is due April 9th and must include the problem

Uploaded by

Hanan Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

AlexandriaUniversity FacultyofEngineering ComputerandSystems EngineeringDept.

SecondYear

DigitalDesignII Lab1 Assigned:Wednesday,Apr.2nd,2014 Due:Wednesday,Apr.9th,2014

Lab1
Itisrequiredtodesignandimplementthe16bitALUshowninthefigurebelowthat supportsthefollowingoperations

OperationCode 0000 0001 0010 0011 0100 0101 0110 0111 1000

Instruction TRNS ADD ADDC SUB SUBB INCA DECA AND OR

Description O=A O=A+B O=A+B+Cin O=AB O=ABCin O=A+1 O=A1 O=A&&B O=A||B

Prof.MarwanTorki Eng.AhmedElmorsy Eng.HebaAly

AlexandriaUniversity FacultyofEngineering ComputerandSystems EngineeringDept. SecondYear

DigitalDesignII Lab1 Assigned:Wednesday,Apr.2nd,2014 Due:Wednesday,Apr.9th,2014

1001 1010 1011 1100 1101

XOR NOT SLL SRL SRA

O=A^B O=!A ShiftLiftLogicShiftAbyB ShiftRightLogicShiftAbyB ShiftRightArithmeticShiftAbyB

Themoduleshouldhavetwo16bitinputports,oneforeachoperand.Another4bit inputporttospecifytheALUoperationand1bitinputascarryorborrowinput.The outputoftheALUisa16bitoutputporttoholdtheresult,1bitforcarryorborrowout threebitsforoverflowflag,Negativeflag,andzeroflag.Youshouldtestthemodule usingtheTestbenchwaveform.Specifyingmeaningfultestcasesisamust. Requirements: Youarerequiredtodeliverareportcontainingthefollowing: 1. ProblemStatement. 2. VHDLsourcecodesnippetsfordifferentoperations 3. Testbenchforeachoperation. Policies: DuedateisTuesday,Apr.9th,2014. Youshouldbringyourvhdlcode(*.vhdl),testbenchwaveforms(*.tbw), packagepinsassignment(*.ucf),andprogrammingfiles(*.bit). Nolatesubmissionwillbeaccepted.

Prof.MarwanTorki Eng.AhmedElmorsy Eng.HebaAly

You might also like