
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Lab assignment, ALU
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

An Arithmetic Logic Unit (ALU) is a circuit that does arithmetic, such as addition, subtraction, set‐less‐than, bit‐wise AND, bit‐wise OR, etc. The ALU you will design is a combinational circuit that operates on 4‐bit numbers. It has two inputs A and B, and an output Y. It has four operations that can be selected: add, subtract, set‐ less‐than, and bit‐wise AND. To select the operation, the ALU has a 2‐bit select input Sel which selects as follows
Design this circuit in verilog, implement it on the Basys board, and demonstrate your working circuit to the TA. For your lab report, briefly describe how you proceeded with writing the verilog code. Discuss any other steps you needed to implement the circuit such as writing any universal configuration files, etc. Then discuss any problems you encountered. Your lab report can be short, but it must be clear.