Вы находитесь на странице: 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

Вам также может понравиться