Skip to content

Logic and Digital Circuits Section

Putting Bits to Work in Computer Hardware

Terms Used in this Section

TermMeaning
Arithmetic Function/CircuitOperation that processed input signals into a mathematical output. i.e. ADD, SUBTRACT.
CircuitGroup of transistors that implement logic, control, or storage capability in hardware. AKA Gate.
Input/OutputElectrical or binary signals sent into or received out of a transistor, circuit, or arithmetic function.
Invert/InversionSwitching a value/state to its opposite reference value/state. i.e. binary 1 is inverted into a binary 0.
Logic Function/CircuitOperation that processed input signals into a boolean output. i.e. AND, OR, NOT.
N-Type TransistorTransistor that outputs the same reference/boolean value as its input.
P-Type TransistorTransistor that outputs the opposite reference/boolean value than its input.
Ripple circuitA set of identical circuits chained together to cause an output from one circuit feeds the next circuit, and affects the next circuit's result. Common in arithmetic circuits that require carry/borrow interactions between values.
Storage Function/CircuitOperation that retains input signal (single bit) between clock cycle. i.e. STORE, RETRIEVE.
TransistorsElectronic devices used to represent binary 1 or 0 in hardware.
Truth TableA tablature representation of all if a circuit's inputs and outputs.

Logic is the basic decision-making language for computer hardware and software. Using the simplified binary number system, computers function in the mutually exclusive realm of *and*, *or*, & *not*.

While this is a very simple realm, it allows computers to complete tasks very fast. This speed then allows computers to complete more tasks for a given time unit that a device that functions in an environment of base 10.

Transistors are the lowest level computer hardware element. When supplied with a voltage, a transistor can represent a single binary value. The two standard transistor types (P-Type and N-Type) can be arraigned to function as simple logic circuits.

Circuits are the engine that powers logic operation in computers. Each elementary logic construct can be made physical with an equally elementary circuit. These circuits are built from configurations or 4 or 6 transistors.

More complex logic constructs can be realized in configurations of elementary circuits.

Finally, arraigning circuits in different configurations yields control and storage devices. These elements function as Memory, Controllers, Registers, and Arithmetic Logic Units (ALU)...combined to make the modern Central Processing Unit (CPU) at the heart of modern computers.

In this section we will discuss the Devices and Circuits layers of the Hardware/Software Abstraction Model.

HW/SW Abstraction Layers

Truth Tables

Learn how to discuss and document digital logic circuit behaviors.

The Transistor

This microscopic physical device combines simple chemistry with the properties of electric potentials (voltage) to enable modern computers to perform with speed, accuracy, and reliability.

Basic Logic

Logic drives the decision-making capabilities of computers. From high-level programming language comparisons to low-level hardware data flow, logic enables computers to react to the dynamic nature of real-world inputs.

We review simple logic function used not only in computer science, but in everyday situations.

Basic Circuits

Arraigning sets of transistors into parallel and series configurations they behave electronically like Basic Logic functions. These simple 4 and 6 transistor circuits create digital logic that drive the lowest levels of the digital computer hardware

Basic Logic Circuits

Combine transistors to implement basic logic functions, such as AND and NOT.

Designing Circuits

Creating digital circuits starts with a Truth Table, listing all digital inputs and the required outputs for each possible set of inputs. Using a simple algorithm, an equitant circuit can be created to match the starting Truth Table.

Control Circuits

Combining basic logic circuits creates higher-level digital control circuits that can manage data flow, move information, and orchestrate higher-level digital hardware capabilities.

Arithmetic Circuits

Understand how basic logic circuits can implement math operations like addition and subtraction.

Storage Circuits

Basic logic circuits can also be arraigned to maintain digital information between computer clock-cycles. This allows modern computer hardware to retain information through more complex operations that take multiple operations to complete.


To get started, expand the section in the Sidebar Menu and read each section

The contents of this E-Text were developed under an Open Textbooks Pilot grant from the Fund for the Improvement of Postsecondary Education (FIPSE), U.S. Department of Education. However, those contents do not necessarily represent the policy of the Department of Education, and you should not assume endorsement by the Federal Government.
Released under Creative Commons BY NC 4.0 International License