Docsity

Digital Integrated Circuits: A Design Perspective - Project | ECE 126, Study Guides, Projects, Research of Electrical and Electronics Engineering

Toggle sidebar
bg1
Digital Integrated Circuits―A Design Perspective 2/e © Prentice Hall 2003
Digital Integrated Circuits – A Design Perspective 2/e
Jan M. Rabaey, Anantha Chandrakasan, Borivoje Nikolić
Chapter 11 and 6
Design Project: 32-bit Arithmetic Logic Unit (Phase 1)
1. Designing a 32-bit atithmetic-logic unit – Background
Arithmetic-logic units are the heart of any microprocessor. This semester, we will design the
critical part of a 32-bit ALU.
1.1. High level structure
The high-level block diagram of a high-performance ALU is shown in Figure 1.
ALU’s have four major parts:
• Arithmetic block: This block is used to perform arithmetic operations such as addition,
subtraction and comparison. The core of the arithmetic block is an adder. In the
architecture presented in Figure 1, the adder uses carry look-ahead and sum-select
techniques (the blocks labeled CARRYGEN, SUMGEN and SUMSEL).
• Logic block: This block is used to perform simple bitwise logic operations such as AND
(masking), OR and XOR (the block labeled LU in Figure 1)
• Multiplexers: These blocks are used to select the appropriate inputs for the arithmetic and
logic blocks. Usually more than two buses arrive at the inputs of the ALU (9 buses in
Figure 1, selected by 9:1 MUX’s). Sometimes these multiplexers are used to perform
some simple logic operations. The 5:1 MUX is a programmable shifter: its inputs contain
pf3
pf4
pf5

Partial preview of the text

Download Digital Integrated Circuits: A Design Perspective - Project | ECE 126 and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity!

Digital Integrated Circuits – A Design Perspective 2/e

Jan M. Rabaey, Anantha Chandrakasan, Borivoje Nikolić

Chapter 11 and 6

Design Project: 32-bit Arithmetic Logic Unit (Phase 1)

1. Designing a 32-bit atithmetic-logic unit – Background

Arithmetic-logic units are the heart of any microprocessor. This semester, we will design the critical part of a 32-bit ALU.

1.1. High level structure

The high-level block diagram of a high-performance ALU is shown in Figure 1.

ALU’s have four major parts:

  • Arithmetic block: This block is used to perform arithmetic operations such as addition, subtraction and comparison. The core of the arithmetic block is an adder. In the architecture presented in Figure 1, the adder uses carry look-ahead and sum-select techniques (the blocks labeled CARRYGEN, SUMGEN and SUMSEL).
  • Logic block: This block is used to perform simple bitwise logic operations such as AND (masking), OR and XOR (the block labeled LU in Figure 1)
  • Multiplexers: These blocks are used to select the appropriate inputs for the arithmetic and logic blocks. Usually more than two buses arrive at the inputs of the ALU (9 buses in Figure 1, selected by 9:1 MUX’s). Sometimes these multiplexers are used to perform some simple logic operations. The 5:1 MUX is a programmable shifter: its inputs contain

shifted versions of the 9:1 MUX output. The 2:1 MUX can be programmed to invert one of the operands (this can be used to execute a subtraction using just an adder).

  • Registers: these blocks are used to store the operands and the results. Usually, these registers are not part of the microprocessor’s register file (though not always the case). Note that there is a bus looping from the output back to the input of the ALU, allowing it to use the newly computed results as operands in the next cycle. This is usually a very long wire (1.6mm in this case) and therefore puts a significant load on the previous stages.

2. Implementation and Constraints

The goal of this project is to design the carry-lookahead adder for an ALU to be used in a high- performance or mobile microprocessor with a particular set of optimization criteria. The project will be completed in TWO phases. In the first phase of the project, you will choose a circuit style, design the logic, and lay out basic cells for a 32-bit adder. You will also have to do some pencil-and-paper optimization in order to meet the stated design goals and constraints. The complete adder will be assembled and simulated in PHASE 2.

Physical and electrical specifications and constraints:

2.1. TECHNOLOGY : The design is to be implemented in a 0.25 μm CMOS process with 4 metal layers. The SPICE technology is in the g25.mod file. 2.2. POWER SUPPLY : You are free to choose any supply voltage and logic swing up to 2. V. Make sure that you use the appropriate model when you perform any hand analysis. 2.3. PERFORMANCE METRIC : The propagation delay for static CMOS design is defined as the time interval between the 50% transition point of the inputs and the 50% point of the worst- case output signal. Make sure you pick the worst-case condition and state EXPLICITLY in your report what that condition is. For dynamic designs, the propagation delay is defined in this case as the delays of the evaluate phase ONLY (at least in this phase of the project)! 2.4. AREA : The area is defined as the smallest rectangular box that can be drawn around the design. Since the ALU must interface with the cache, all of the row-matched inputs must be accessible from the left side of the design, in row-address order. In the first phase of the project, you should make area estimations based on the total transistor width and the wiring complexity. An expression for prediction of the area will be provided on the web page. 2.5. Each bit slice in the adder should accommodate 9 metal-5 busses and is 144λ (36 metal pitch) wide. Other circuits in the datapath set this constraint. 2.5. NAMING CONVENTIONS : The input operands of the adder are named A<31:0> and B<31:0>. The output is SUM<32:0>, where SUM<32> is the carry out bit. 2.6. REGISTERS : In this phase of the design, you do not need registers. The data flow from input to output should be combinational logic. 2.7. CLOCKS : There should be no global clock since the design is combinational. If you choose to use dynamic logic, you are permitted a precharge/evaluate clock, but the result must become available after ONE evaluate phase (no pipelined logic). Remember that the load capacitance of the clock should be included in the energy analysis. 2.8. VOH, V OL , NOISE MARGINS : You are free to choose your logic swing. The noise margins should be at least 10% of the voltage swing. Test this by computing the VTC between one of the inputs and the output signals (with the other outputs set to the appropriate values) for a static

of your results and describe how you arrived at them. Describe the sizing methodology used in your design. Include schematics and highlight important elements and the critical paths. The total report should not contain more than four pages. You are not allowed to add any other sheets.

The organization of the report should be based on the following outline: Cover page: Names, project title, decisions about logic family and the carry path, performance estimates. Page 1: Executive summary, overall design decisions: circuit style, drawing of the carry- lookahead tree, critical path, sizing, remarks, and motivations Page 2-3: Schematics and layouts of all circuit cells. Simulation results for power and area. Remember, a good report is like a good layout: it should perform its function (convey information) in the smallest possible area with the least delay and energy (to the reader) possible. The quality of the report is an important (major) part of the grade!

Design of an 32-bit Arithmetic Logic Unit – Phase II

1. Physical design of a 32-bit adder

In the second phase of the project, you must realize the physical design of the complete 32-bit adder you proposed in phase 1. You should complete the schematic in SUE, and lay out the design using MAX, the layout editor you have become intimately familiar with throughout this semester, using the cells designed in the first phase. Your schematic and layout should be well organized, and easy to understand. Your layout must be free of design rule errors, and must include wells and sufficient contacts to the wells. Note that the latest version of MAX provides the easy generation of contacts, via’s, and wells through the via p-cell normally located in the right sub-window of the layout editor. As with any layout assignment, you will quickly discover that drawing a layout is much simpler if you plan things out ahead of time. It is much easier to have a general layout strategy than to just blindly draw objects on the screen. For example, it is important to plan out how you will distribute the supply and ground rails in your design. As discussed in phase 1, we suggest that you draw them horizontally in metal 1. A design that is very regular can easily be tiled and reused, saving you a lot of time.

Plan ahead: develop a top-level plan of your design. Try to determine optimal routing and placement of wires. Use common sense in laying out your circuit and remember that long transistors must be built properly. Plan your cells accordingly. You can modify them slightly from phase 1 if they don’t fit your top-level floorplan. Use the same specifications for the height of the bit-slice as you had in phase 1. Arrange the bit slices accordingly, and connect the power and ground. Make your wiring plan: in which metal layers are you going to route long carries? Use metal layers 1-4 for all routing, metal 5 should be used only for routing the bus on the top level. Make sure that you properly strap the supply rails, and that you distribute the clocks if you are using dynamic logic.

2. Updating Results

Most likely, mapping your design into a physical implementation will cause some significant changes in the energy and delay of your circuit. However, the functional operation shouldn’t change! You must ensure that your layout and schematic are functionally equivalent by performing LVS (layout-versus-schematic) check. You must therefore perform both a full functional and performance analysis on your extracted layout. The goal of this phase of the project is to compare the results before and after physical design, not to improve on the design goals. Explain any major deviations from your results in Phase I. Try not to make any significant changes (i.e. adder architecture, etc.) to your original design of Phase I. You may make minor modifications to the circuit that do not change the underlying foundation of your design. If you find it absolutely necessary to alter a major part of your circuit (because of non-functionality or unacceptable results), a full motivation should be provided in the report.