This repo contains a SystemC code to control a set of 3 lights based on the switches pressed
The switches p1 and p2 act as the inputs and the lights l1, l2 and l3 are switched based on the below transition table:
Where, NL (No lights on), L1 (Light L1 is turned on), L2 (Light L2 is turned on) and L3 (Light L3 is turned on)
The design.cpp contains the logic in which based on the inputs p1 and p2, the states of the system are controlled and the testbench.cpp contains the order in which the inputs p1 and p2 are serially excited.