Logo
Contact Us
Cookies Policy
Terms of Use
Privacy Policy
phone
Vivi (Sales)
phone
Lucy (Sales)
phone
Ban (Sales)
phone
+86 755-2845-3125

  • EN
  • RU
RFQ List
    • English
    • Русский

  • Manufacturers
  • Hot Products
  • RFQ
  • Blog
  • Tools
  • Sourcing Solutions
  • PCB/SMT
  • About Us
    • Logo
    • RFQ List
      • Manufacturers
      • Hot Products
      • RFQ
      • Blog
      • Tools
      • Sourcing Solutions
      • PCB/SMT
      • About Us
    RFQ
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    CONTACT US
    +86 755-2845-3125
    [email protected][email protected][email protected]
    Room 2709B, 5A Office Building, Longguang Jiuzuan, Hongshan, Longhua District, Shenzhen, China
    Company
    • Blog
    • About Us
    • Contact Us
    Resources
    • Categories
    • Manufacturers
    • Tools
    • RFQ
    Quick link
    • Privacy Policy
    • Terms of Use
    • Cookies Policy
    • Refund & Return Policy
    • Shipping & Delivery Policy
    Payment
    • Payment method
    • Payment method
    • Payment method
    • Payment method
    Logistics
    • Logistics partner
    • Logistics partner
    • Logistics partner
    • Logistics partner

    © 2026 Copyright. All Rights Reserved. Made by ICAllIn

    Part number
    Part number
    1. Home/
    2. Blog Home/
    3. PCB Solution/
    4. Digital Logic Design & Sourcing Guide
    PCB Solution2026-09-10

    Digital Logic Design & Sourcing Guide

    Digital logic design converts a behavioral requirement into a circuit that produces specified outputs. Use combinational logic when current inputs contain everything needed for the decision. Add stored state when the output must distinguish different histories, such as whether a request has already started a transaction.

    Begin with input meanings and expected behavior. This tutorial develops a Boolean condition and a controller; physical voltage thresholds and PCB implementation require a separate review.

    Start with a complete input-output requirement

    A truth table describes the output for each allowed input combination. With three binary inputs, there are eight combinations to consider. MIT's introductory combinational-logic lecture explains this relationship between a functional specification and its truth table.

    For an illustrative request-acceptance circuit, define three inputs:

    • request: a transaction has been requested.
    • ready: the processing block can accept it.
    • inhibit: acceptance must be blocked.

    Specify accept = request AND ready AND NOT inhibit. Only input combination request=1, ready=1, inhibit=0 produces 1; the other seven produce 0. That statement completely defines the function without an eight-row table.

    Test the requirement with counterexamples. If ready is 1 but request is 0, acceptance must stay 0. If request and ready are both 1 but inhibit becomes 1, acceptance must also be 0. These checks test the intended behavior, rather than merely repeating the expression.

    Translate the expression into useful logic blocks

    The expression maps to an inverter on inhibit followed by an AND operation. A synthesis tool may implement an equivalent network of different cells. The logical function is the contract; the particular gate arrangement is an implementation choice.

    A multiplexer chooses an input; an adder combines binary quantities; a decoder translates a code into selection signals. Verify any simplified expression against every required input combination.

    Do not equate an arbitrary network of gates with combinational logic. Feedback can create storage. What matters is whether the specified output depends solely on present inputs or requires retained information.

    When does the circuit need state?

    State is needed when identical current inputs must produce different behavior because earlier events differed. Suppose a processing request lasts only one cycle, but the processing block must remain active until completion. The request-acceptance expression alone cannot remember that work is underway.

    A finite state machine, or FSM, separates a state register, next-state logic, and output logic. These are the three elements identified in AMD's Vivado FSM description. Moore outputs depend on state; Mealy outputs also depend directly on current inputs.

    For this example, assume all event inputs are synchronous to one clock and stable for sampling. Use three states, a synchronous reset, and a Moore output called done.

    Build and trace a three-state controller

    The controller accepts start in IDLE, waits for complete in RUN, and holds DONE until acknowledge arrives. Reset takes priority over all other conditions and selects IDLE at the next active clock edge.

    Present stateCondition at active edgeNext statedone in present state
    Any statereset = 1IDLEDetermined by present state
    IDLEstart = 1, reset = 0RUN0
    RUNcomplete = 1, reset = 0DONE0
    DONEacknowledge = 1, reset = 0IDLE1
    IDLE / RUN / DONENo applicable transition, reset = 0Hold present state0 / 0 / 1

    illustration

    The illustration omits hold-state arrows for clarity. In this example, reset is synchronous and done is asserted only in DONE.

    Trace a concrete sequence. After a reset edge, state is IDLE and done is 0. A sampled start selects RUN. Two cycles without complete leave it in RUN. Sampling complete selects DONE, making done 1 after the state update. Acknowledge then returns it to IDLE.

    Three states need at least two binary state bits. Choose recovery to IDLE for the unused encoding. This is a functional design choice, not a safety certification.

    Verify the corner cases before implementation

    Check events in the wrong state: complete in IDLE must not produce done, and start during RUN must not restart the transaction. If complete and acknowledge arrive together in RUN, the controller enters DONE; acknowledgement is evaluated only while already in DONE.

    A start held high through completion can initiate another transaction after the controller returns to IDLE. If that is unwanted, change the interface contract or add request-edge detection. Also test reset during RUN and DONE. Because reset here is synchronous, it does not change state until the active edge.

    FAQ

    Are all flip-flop outputs restricted to clock-edge changes?

    No. Some devices have asynchronous set or reset controls. For example, TI's SN74HC74 datasheet specifies asynchronous preset and clear. Match the circuit or RTL behavior to the intended reset contract.

    Does a correct truth table prove the finished circuit will work?

    It proves only the specified logical mapping when properly implemented. A complete design also needs sequential verification where applicable, timing analysis, and electrical-interface checks.

    Carry the behavior into the schematic

    Keep the input definitions, Boolean expressions, state transitions, and reset priority together. They provide concrete checks for simulation and help distinguish a logic error from an implementation problem.

    Need Help With PCB Manufacturing or PCBA Assembly?

    Submit your PCB manufacturing or PCBA assembly requirements to request a quotation.

    Submit Your PCB/SMT Requirements

    ICAllIn Engineering & Supply Chain Team
    ICAllIn Engineering & Supply Chain Team
    Facebook
    LinkedIn
    Reddit

    Related Blogs

    View All Blogs
    PCB Breakout Boards: Pinouts, Logic Levels & Bring-Up
    PCB Solution
    2026-12-01

    PCB Breakout Boards: Pinouts, Logic Levels & Bring-Up

    An onboard LDO on a PCB breakout board does not make 3.3 V pins 5 V-tolerant. Audit logic levels, stacked I2C pull-ups, bring-up steps, and hidden BOM parts.

    Read More
    Popular Blogs
    PCB Solution
    PCB Solution2026-06-24

    PCB Market Outlook 2026-2027

    PCB Solution
    PCB Solution2026-06-24

    PCB Capacity Expansion

    9
    Schematic Diagram Design: Readable Nets, Pins & ERC
    PCB Solution
    2026-12-01

    Schematic Diagram Design: Readable Nets, Pins & ERC

    A sheet can pass ERC and still fail bring-up. Clear schematic diagram design pairs staggered junction dots, named nets, and datasheet pin checks with ERC.

    Read More
    5
    AI PCB Design Tools: Matching Project Inputs to CAD Outputs
    PCB Solution
    2026-11-30

    AI PCB Design Tools: Matching Project Inputs to CAD Outputs

    Not every AI PCB design tool fits the same stage. Compare copilots, schematic synthesis, automated placement, and constrained routers by native CAD output.

    Read More
    7
    Editable AI PCB Files: Copper Zones & Library Audit
    PCB Solution
    2026-11-30

    Editable AI PCB Files: Copper Zones & Library Audit

    Moving one part exposes whether editable AI PCB files use live native copper zones or frozen polygons, plus how to check pad maps, libraries, and DRC scope.

    Read More
    7
    PCIe 5.0 Channel Loss: 32 GT/s Via Stubs & Backdrilling
    PCB Solution
    2026-11-25

    PCIe 5.0 Channel Loss: 32 GT/s Via Stubs & Backdrilling

    Control PCIe 5.0 channel loss at 32 GT/s: budget insertion loss across packages and laminates, specify backdrill residual stubs, and limit weave skew.

    Read More
    9
    LTspice Convergence: Fix Matrix & Timestep Errors Fast
    PCB Solution
    2026-11-24

    LTspice Convergence: Fix Matrix & Timestep Errors Fast

    Resolve LTspice convergence errors systematically: separate singular matrix, DC operating point, and timestep failures before tuning SPICE tolerances.

    Read More
    7
    PCB Solution
    PCB Solution2026-06-24

    PCB Price Shock

    PCB Solution
    PCB Solution2026-06-24

    PCB Allocation Market

    PCB Solution
    PCB Solution2026-08-31

    PCB Thickness for Connector and Enclosure

    PCB Solution
    PCB Solution2026-08-22

    PCB Copper Pour Basics

    Hot Products
    MT53E1G32D2FW-046 AAT:C TR

    MT53E1G32D2FW-046 AAT:C TR

    Micron

    KLMCG1RCTE-B041

    KLMCG1RCTE-B041

    SAMSUNG

    K4B2G1646F-BCNB

    K4B2G1646F-BCNB

    SAMSUNG

    BH66F5362

    BH66F5362

    Holtek

    M25P80-VMW6TG

    M25P80-VMW6TG

    Micron

    K4FBE3D4HM-GHCL

    K4FBE3D4HM-GHCL

    SAMSUNG

    Need Reliable IC Sourcing?

    We help buyers reduce risk, save time, and secure available stock.

    1. We inspect parts before shipment to help reduce quality risk.
    2. We verify supplier sources to support safer component purchasing.
    3. We provide traceability support when available, including labels, date codes, and origin information.
    4. We check packaging condition to help avoid handling, storage, or delivery issues.
    5. We support global shipping to help buyers receive parts across regions.
    6. We respond quickly to BOMs, part numbers, stock checks, and urgent RFQs.
    7. We provide clear quotations with price, stock, lead time, and key purchase details.
    8. We help you source available stock and select discounted parts to reduce procurement costs.
    Submit RFQ or BOM List

    Fast quote for global buyers