1 / 12

ENGSCI 232 Computer Systems Lecture 5: Synchronous Circuits

ENGSCI 232 Computer Systems Lecture 5: Synchronous Circuits. The building block of synchronous circuits, such as counters and shift registers, is the flip-flop

Download Presentation

ENGSCI 232 Computer Systems Lecture 5: Synchronous Circuits

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ENGSCI 232 Computer Systems Lecture 5: Synchronous Circuits

  2. The building block of synchronous circuits, such as counters and shift registers, is the flip-flop • A flip-flop is a device which can be ‘latched’ into either of two possible states and stay in that state until a specified set of input conditions occur.

  3. We can build a latch by using 2 NAND gates with appropriate coupling.

  4. Clocks • An asynchronous system allows states to change whenever one or more inputs change. This is generally harder to design and fault-find than a synchronous system. We will consider synchronous systems in this lecture. • Here the exact times at which outputs can change state is determined by the ‘clock’ signal. • The clock is normally a regular rectangular waveform and is applied to many component within a digital system. • A flip-flop may be designed to trigger on either the rising or falling edge of the clock pulse (ie when the clock is changing from 0 ->1 or 1->0).

  5. D-Type Flip-Flop

  6. S J K Qn+1 J Q 0 0 Qn 0 1 1 1 0 0 K Q 1 1 Qn R JK-type flip-flops • Similar to D flip-flop, but has two data inputs clock

  7. D D D D Q Q Q Q C C C C Q Q Q Q Building a Counter using flip-flops • To count electrical pulses, feed signal into clock input • Chain a flip-flop output to next flip-flop clock to add extras bits to your counter Q0 Q1 Q2 Q3 input clock negative edge triggered flip-flops input clock Q0 Q1 Q2 binary base10

  8. D D D D Q Q Q Q C C C C Q Q Q Q Shift Registers • We often need to shift bits left, eg to ... • We do this using a shift register (eg built from flip-flops) Q0 Q1 Q2 Q3 data input clock

  9. Registers • Registers store working data • think of as a small scratch-pad of memory • fast access • Data moves between registers on a ... • use a system .......... to ensure synchronisation • Can use N flip-flops to make an N-bit register (just like memory) • Add digital logic to perform further functions • load preset data • shift left • shift right • shift by n bits left or right • count

  10. Control ALU Registers and databuses • Different registers can grab data from a common data bus - at different times Memory Storage Data Bus (32 bits wide) Register 1 Register 2 Load 2 Load 1 ALUop Result Register Status Register Load result

  11. Real vs Ideal Components • Because voltages cannot change instantaneously, all real devices have propogation delays where the actual output lags behind that expected theoretically. While the voltage is changing, we have voltages that are not 0V or 5V that are often input to a second device. A device has some arbitrary cutoff (eg 2.5V) above which the input is interpreted as a true and below which as false. • For example, consider an inverter. When input goes 0V -> 5V, output goes 5V -> 0V but NOT instantly. When the input goes 5V -> 0V, output goes 0V -> 5V but NOT instantly.

  12. 32 CPU Address Decoder Address Clk Read R5 R4 Write R3 R2 R1 R0 32 Data Timing and Control by CPU • CPU generates control signals to co-ordinate operations such as memory read write

More Related