Design of D-Flip-Flop using SPICE Code

  1. Design and write a SPICE Code for a sequential circuit that functions as a 2-bit binary counter. The counter should count up from 00 to 11 and then reset to 00.

    • Use D flip-flops constructed using NMOS and PMOS pass transistors and D-Latches to build the circuit.
  2. Design and write SPICE Code for a digital timer circuit that counts seconds and minutes and displays the time in a suitable format (e.g., HH:MM). Use D flip-flops and D latches in your design.

    • Determine the number of D flip-flops and D latches required for the timer based on the desired time range and precision
    • Determine the number of transistors required in the schematic of this circuit.
  3. Compare and contrast the characteristics, behavior, and applications of D latches and D flip-flops to gain a deeper understanding of these components and their suitability for different scenarios.

  4. Use SPICE to write code for a positive edge triggered D-Flip-Flop