Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 788 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 788 Bytes

State-Transition-Model

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:

image

Where, NL (No lights on), L1 (Light L1 is turned on), L2 (Light L2 is turned on) and L3 (Light L3 is turned on)

image

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.