Skip to content

This repo contains a SystemC code (C++ code making use of SystemC library) to control a set of 3 lights based on the switches pressed

Notifications You must be signed in to change notification settings

anr2311/SystemC_State-Transition-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This repo contains a SystemC code (C++ code making use of SystemC library) to control a set of 3 lights based on the switches pressed

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published