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
    • 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
    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
    Popular Blogs
    PCB Solution
    PCB Solution2026-06-24

    PCB Market Outlook 2026-2027

    PCB Solution
    PCB Solution2026-06-24

    PCB Capacity Expansion

    8
    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
    6
    Ethernet MDI Routing: PHY Timing, Magnetics & EMC Guide
    PCB Solution
    2026-11-24

    Ethernet MDI Routing: PHY Timing, Magnetics & EMC Guide

    Master Ethernet MDI routing from PHY to RJ45: separate RMII/RGMII timing, control 100 ohm pairs, manage magnetics keepouts, and contain common-mode EMI.

    Read More
    8
    ODB++ Files in PCB Manufacturing: Layer & Drill Checks
    PCB Solution
    2026-11-23

    ODB++ Files in PCB Manufacturing: Layer & Drill Checks

    Prepare ODB++ files for PCB manufacturing and CAM review: verify the layer matrix, blind and buried drill spans, netlist parity, and fabrication notes.

    Read More
    8
    AI PCB API Workflow: Bridge Checks & Recovery Guide
    PCB Solution
    2026-11-23

    AI PCB API Workflow: Bridge Checks & Recovery Guide

    Build a reliable AI PCB API workflow with local EDA bridges, native CAD objects, symbol-to-pad checks, netlist read-back, and safe timeout recovery.

    Read More
    7
    PCB Signal and Power Integrity for USB-C Mixed-Signal PCBs
    PCB Solution
    2026-11-22

    PCB Signal and Power Integrity for USB-C Mixed-Signal PCBs

    Protect PCB signal and power integrity on USB-C mixed-signal boards: check continuous ground return paths, 5V input protection, PDN loops, and 90 Ω routing.

    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-24

    Common PCB Thicknesses

    Hot Products
    89H16NT16G2ZCHLG

    89H16NT16G2ZCHLG

    RENESAS

    VN7050AJTR

    VN7050AJTR

    STMicroelectronics

    GD32F407ZGT6

    GD32F407ZGT6

    GD

    ISO7721DR

    ISO7721DR

    Texas Instruments

    INA226AIDGSR

    INA226AIDGSR

    Texas Instruments

    KHBB84A03B-MC1J

    KHBB84A03B-MC1J

    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