1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Lecture Digital logic design - Lecture 31: PLAs and Arithmetic Logic Unit (ALU)

37 101 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 37
Dung lượng 577 KB

Nội dung

The following will be discussed in this chapter: Programmable logic array, K-map minimization, PLA minimizatio, main computation unit in most computer systems, ALUs perform a variety of different functions, individual chips can be chained together to make larger ALUs, build a data and control path.

Lecture 31 PLAs and Arithmetic Logic Unit (ALU) Programmable Logic Array ° A ROM is potentially inefficient because it uses a decoder, which generates all possible minterms No circuit minimization is done ° Using a ROM to implement an n-input function requires: • An n-to-2n decoder, with n inverters and 2n n-input AND gates • An OR gate with up to 2n inputs • The number of gates roughly doubles for each additional ROM input ° A programmable logic array, or PLA, makes the decoder part of the ROM “programmable” too Instead of generating all minterms, you can choose which products (not necessarily minterms) to generate A blank x x PLA ° This is a x x PLA (3 inputs, up to product terms, and outputs), ready to be programmed Inputs OR array ° The left part of the diagram replaces the decoder used in a ROM ° Connections can be made in the “AND array” to produce four arbitrary products, instead of minterms as with a ROM ° Those products can then be summed together in the “OR array.” AND array Outputs K-map minimization ° The normal K-map approach is to minimize the number of product terms for each individual function ° For our three functions, this would result in a total of six different product terms V2 X 1 Z V1 Y 1 X 0 0 Z V0 Y 1 X 0 Z Y 1 V2 =  m(1,2,3,4) V1 =  m(2,6,7) V0 =  m(4,6,7) PLA minimizatio ° For a PLA, we should minimize the number of product terms for all functions together ° We could express V2, V1 and V0 with just four total products: V2 = xy’z’ + x’z + x’yz’ X 1 Z Y 1 V1 = x’yz’ + xy X 0 0 Z Y V0 = xy’z’ + xy 1 X 0 Z Y 1 V2 =  m(1,2,3,4) V1 =  m(2,6,7) V0 =  m(4,6,7) PLA ° So we can implement these three functions using a x x PLA: V2 =  m(1,2,3,4)= xy’z’ + x’z + x’yz’ V1 =  m(2,6,7) = x’yz’ + xy V0 =  m(4,6,7) = xy’z’ + xy Summary ° ROMs provide stable storage for data ° ROMs have address inputs and data outputs • ROMs directly implement truth tables ° ROMs can be used effectively in Mealy and Moore machines to implement combinational logic ° In normal use ROMs are read-only • They are only read, not written ° ROMs are often used by computers to store critical information • Unlike SRAM, they maintain their storage after the power is turned off ° ROMs and PLAs are programmable devices that can implement arbitrary functions, which is equivalent to acting as a read-only memory • ROMs are simpler to program, but contain more gates • PLAs use less hardware, but it requires some effort to minimize a set of functions Also, the number of AND gates available can limit the number of Overvie w ° Main computation unit in most computer systems ° ALUs perform a variety of different functions • Add, subtract, OR, AND… ° Example: ALU chip (74LS382) • Has data and control inputs ° Individual chips can be chained together to make larger ALUs ° ALUs are important parts of datapaths • ROMs often are used in the control path ° Build a data and control path Arithmetic Logic Unit ° Arithmetic logic unit functions • Two multi-bit data inputs • Function indicates action (e.g add, subtract, OR…) ° DataOut is same bit width as multi-bit inputs (DataA and DataB) ° ALU is combinational ° Conditions indicate special conditions of arithmetic activity (e.g overflow) DataA Function DataB ALU Conditions DataOut Think of ALU as a number of other arithmetic and logic blocks in a single box! Function selects the block Adder … Subtract AND 10 23 DLD Simulators ° Circuit Maker 2000 ° MultiSim ° Electronic Workbench 24 CircuitMaker Workspace 25 Connectivity ° An important feature of CircuitMaker is the way electrical connections between the elements in your design are recognized ° The concept of connectivity is the key to using CircuitMaker to draw and simulate electronic circuits The program stores connection information for simulation, and it is also used for creating and exporting netlists into TraxMaker or other pcb layout programs to create a working printed circuit board (PCB) CircuitMaker sections : • Schematic Window • Analysis Window • Panel ° Schematic window is where the schematics are drawn One circuit file at a time can be opened into this window ° Analysis Window is where the simulation results are ° Panel has tabs across the top which are used to select controls which are relevant to the available displayed 26 Anatomy of a Schematic Drawing Schematic, including device symbols, label-values and designations, wires, and pin dots 27 CktMaker Conventions ° CKT Schematic (or Circuit) files ° DAT Data files (Hotkeys; device library classifications) ° LIB Device library files ° MOD Model files ° SUB Subcircuit files ° SDF Waveform display setup files 28 CktMaker Toolbar 29 Drawing a Schematic ° Using the Browse tab in the Panel ° Selecting a transistor ° Selecting resistors ° Selecting a +V and ground device ° Changing resistor and transistor label values ° Wiring the circuit 30 Placing a Transistor Begin the circuit by selecting the 2N2222A transistor [.General/BJTs/NPN Trans] Select General / BJTs / NPN Trans:C in the Browse tree Select the 2N2222A transistor in the Model list Click Place to select this device from the library You can also click the Search tab on the Panel, type 2n2222a , and click Find to quickly find the part Position the transistor at about mid-screen and then click the left mouse button once 31 Placing the Resistors The next procedure involves placing two resistors Select a Resistor [Passive Components/Resistors/Resistor] (r) by pressing the r Hotkey on the keyboard Notice that the resistor is oriented horizontally and moves around the screen with the mouse Press the r key again (or click the Right mouse button) to rotate the device 90° Drag the resistor above and to the left of the transistor and click the Left mouse button once to place it This is resistor R1 Don’t worry about the value yet Place a second resistor directly above the transistor This is resistor R2 32 Placing +V and Ground Devices Now you.’ll place a voltage source and change its settings 1Select a +V [.General/Sources/+V] (1) by pressing the (number one) Hotkey Place it above resistor R2 2Select a Ground [.General/Sources/Ground] (0) by pressing the (zero) Hotkey Place it below the transistor Double-click the +V device using the Left mouse button to open the Device Properties dialog box 33 Placing +V and Ground Devices Change the Label-Value field to read +15V Click once on the topmost Visible check box This causes the +V name to be hidden on the schematic Click once on the third Visible check box from the top This causes the V1 designation to be hidden on the schematic Click OK Changing Resistor Label-Values Double-click resistor R1 Change the Label-Value field to read 220k, then click OK Double-click resistor R2 Change the Label-Value field to read 870k, then click OK 34 Wiring the Circuit Together Select the Wire Tool from the Toolbar Place the cursor on the emitter pin of the transistor (the pin with the arrow.) When the cursor gets close to the pin, a small rectangle appears Click and hold the left mouse button, then drag the wire to the pin of the Ground symbol Release the mouse button to make the connection Place the cursor on the bottom pin of R2, and then click and hold the mouse button to start a new wire Drag the end of the wire to the collector pin of the transistor and release the mouse button Connect a wire from the top pin of R2 to +15V Connect another wire from the bottom pin of R1 to the base of the transistor Finally, connect a wire from the top pin of R1 to the middle of the wire which connects +15V to R2 35 Digital Logic Simulation Click the Open button in the Toolbar Select the SIM.CKT file from the list of available circuits The SIM.CKT circuit contains several mini-circuits and is useful for demonstrating CircuitMaker.’s digital simulation features Click the Run button on the Toolbar to start simulation You know that simulation is running when you see a Hex Display showing a count sequence Select the Probe Tool from the Toolbar and touch its tip to the wire just to the left of the label “Probe Wire to the Left ” The letter L will be displayed in the Probe Tool Move the tip of the Probe Tool to the Logic Switch labeled “Toggle Switch.” and click near its center The Logic Display connected to the output of this minicircuit should then start to toggle on and off rapidly Click the Horizontal Split button on the Toolbar to open the digital Waveforms window Each node in the circuit that has a SCOPE device attached is charted in this window Select Simulation > Active Probe, then run the simulation again A new waveform called Probe displays in the Waveforms window Watch what happens to this waveform as you move the Probe Tool around the circuit Click the Trace button in the Toolbar to see the state of every wire in the circuit as the state changes A red wire indicates a high state, a blue wire indicates a low state Click the Pause button in the Toolbar to stop simulation 36 Demo with examples 37 ... control path Arithmetic Logic Unit ° Arithmetic logic unit functions • Two multi-bit data inputs • Function indicates action (e.g add, subtract, OR…) ° DataOut is same bit width as multi-bit inputs... requires: • An n-to-2n decoder, with n inverters and 2n n-input AND gates • An OR gate with up to 2n inputs • The number of gates roughly doubles for each additional ROM input ° A programmable logic array,... as a number of other arithmetic and logic blocks in a single box! Function selects the block Adder … Subtract AND 10 ALU Integrated Circuit ° Integrated circuit – off-the-shelf components ° Examine

Ngày đăng: 12/02/2020, 19:02

TỪ KHÓA LIÊN QUAN