- A Logic Circuit Simulation Library in C++ |
#include <changeMonitor.h>
Inheritance diagram for lcs::ChangeMonitor< width >:
lcs::ChangeMonitor
class should be created using the constructor which takes a bus object as one of its parameters. At every system time instance, the lcs::ChangeMonitor
object records line states of the bus with which it was instanstiated. If line states at the current time instant differ from line states at the previous time instant, lcs::ChangeMonitor
object displays the new bus line states onto the stdout
device.
Public Member Functions | |
ChangeMonitor (const InputBus< width > &b, const std::string &name) | |
virtual void | onTick (void) |
lcs::ChangeMonitor< width >::ChangeMonitor | ( | const InputBus< width > & | b, | |
const std::string & | name | |||
) |
The only explicit constructor. Other constructors synthesized by the compiler are practically useless and should be avoided.
width | The width of the bus whose lines should be monitored. | |
b | The bus whose lines should be monitored for a change. | |
name | The name with which the bus will be referred to in displaying the line states. |
void lcs::ChangeMonitor< width >::onTick | ( | void | ) | [virtual] |
A user of libLCS will never need to use this function. It is used by the system time keeper to notify a lcs::ChangeMonitor
object about an occurance of a time step.
Implements lcs::TickListener.