FormularioDigital Systems: definizioni, teoremi e formule delle note, in ordine di capitolo
In questa pagina 5
III. Sequential Logic
Sequential Systems - State, Latches and Flip-Flops
Formula (characteristic equation of the D flip-flop). , evaluated at the active edge.
Timing of Sequential Systems - Setup, Hold and Maximum Clock Frequency
Formula (minimum clock period). Adding a safety margin :
Formula (hold constraint). Output changes of a flip-flop must not reach another flip-flop (or itself) too early. With the minimum delays of flip-flop and network:
Finite State Machines - Synthesis
Formula (bits to encode the states). To represent states we need bits (). There are many possible encodings; fewer bits (fewer flip-flops) does not always mean lower cost: the combinational network matters too. Optimal encoding is a hard problem solved with heuristics. Two encodings are compared.
IV. Technologies, Registers and RTL
Implementation Technologies - CMOS Gates and Technology Parameters
Formula (transistor count). An -input NAND or NOR has transistors ( pMOS and nMOS); an inverter has 2; an AND ( NAND inverter) has . This is why AND and OR cost more than NAND and NOR, which are also faster, and circuits are usually built with NAND/NOR.
Memories - ROM, RAM, SRAM and DRAM
Formula (RAM capacity). Capacity is the number of words times the bits per word: bits. Addresses go from to . The number of address bits is independent of .
Microoperations and RTL
Formula (arithmetic microoperations). Addition (), subtraction (), increment (), decrement (), complement. Multiplication and division are not elementary: they are sequences of basic microoperations. An adder-subtractor with control signals (0 add, 1 subtract) and :
Datapath and Control Unit
Formula (flip-flop input with three logic microoperations).
V. VHDL
VHDL - Entity, Architecture, Types and Description Levels
Formula (2-bit ).
VI. Computer Organization and Architecture
Simple Computer - Datapath, ALU and Register File
Formula (arithmetic part). An adder ( full adders in cascade) with an input logic on producing and a carry-in : .
Simple Computer - Instruction Set, Single-Cycle and Multi-Cycle Control
Formula (single-cycle clock period). The period must be at least the sum of the delays of all blocks along the critical path, since in one cycle the signal crosses them in sequence.
block PC instr. memory register file (read) MUX B function unit or data memory MUX D register file (write) delay (ns) 0.2 4 0.6 0.2 4 0.2 0.6 Sum ns, so MHz.
Pipelining and Hazards
Formula (cycles for instructions). In the first cycles not all stages are busy (the pipeline fills), likewise at the end (it empties). instructions need cycles: 7 instructions on 4 stages take cycles. A single instruction on a 6-stage pipeline takes cycles (the latency). In steady state one instruction completes per cycle, with at most instructions in flight.
VII. Memory and Input-Output
Main Memory - RAM, ROM and Chip Organisation
Formula (RAM capacity). bits: words of bits; addresses run from to . The number of address bits is independent of .
Memory Hierarchy and Cache Memory
Formula (average access time). The CPU should find the data in the cache as often as possible: cache hit = data in the cache; hit rate = percentage of hits. Otherwise a cache miss occurs (miss rate) and the data are fetched as a block from the other memories. A standard model is : for ns, miss rate and penalty ns, ns.