Simulation of Combinational Circuit Design with SystemC
Examples of Combinational Circuit Simulation in SystemC
A combinational logic circuit in digital hardware is asynchronous, doesn’t require an external clock or feedback loop, and output entirely depends on the current input. In this article, we look at a few examples of combinational circuit design and their implementation with SystemC. We start with an inverter logic.
Inverter Logic in SystemC
An inverter is one of the most simple logic gates that converts 0 to 1 and 1 to 0. Schematically, it can be denoted as shown in Figure 1.
Let’s look at the code to implement and simulate inverter logic:
Let’s try to understand Code 1. We see a class called inverter
that has an invert
function to perform logical NOT operation. In the constructor, we specify the function as a…