Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

LABORATORY 4 – ARITHMETIC LOGIC UNIT

LABORATORY 4
ARITHMETIC LOGIC UNIT

OBJECTIVES
No. Objectives Requirements
1 Program and assemble ALU circuit following  Write HDL code to
specifications. implement the system.
 Re-used logic components
to build up this system.

EXPERIMENT 1
Objective: Known how to program ALU circuit with registered inputs and outputs.
Requirements:
The circuit in Figure 1 shows an ALU circuit with registered inputs and outputs. The ALU
can implement add and subtract depending on Sel input which is shown in Table 1. Write
Verilog/System Verilog HDL code to implement this system with 8-bit input data.

Figure 1 A registered ALU circuit


S1 S0 P
0 0 A+B
0 1 A-B
1 0 A+B+1
1 1 A-B+1
Table 1 Operation of ALU circuit

Department of Electronics Page | 1


Digital IC Design Laboratory
LABORATORY 4 – ARITHMETIC LOGIC UNIT

Check: You must show in your report these results.


 The waveform to prove the circuit works correctly and the result of RTL viewer.
 The waveform of this circuit at transistor level and measure these parameters in Table
2.

Result

- Rising time (10%-90%)

- Falling time (90%-10%)

– Rising propagation delay (90%-50%)

– Falling propagation delay (10%-50%)

– Average propagation delay (50% - 50%)

Power consumption

Clock speed
Table 2 Measurement result of a registered ALU circuit
--------------------------------------------------------------

 ONE MORE THING…

After completing this lab, please answer the following questions.

 How much time did you spend completing this lab?


 Is there any problem when you do? Please let me know.

Department of Electronics Page | 2


Digital IC Design Laboratory

You might also like