- A Logic Circuit Simulation Library in C++





lcs::FanOut< n, delay > Class Template Reference

#include <fanout.h>

Inheritance diagram for lcs::FanOut< n, delay >:

lcs::Module List of all members.

Detailed Description

template<unsigned int n = 1, unsigned int delay = 0>
class lcs::FanOut< n, delay >

A class which encapsulates a fanout module. It takes a single-line bus as input and produces a user specified number of copies of the input.

Parameters:
n The number of desired output lines for the input line.
delay The propogation delay of the module.


Public Member Functions

 FanOut (const Bus< n > &out, const InputBus<> &in)
 ~FanOut ()
virtual void onStateChange (int portId)


Constructor & Destructor Documentation

template<unsigned int n, unsigned int delay>
lcs::FanOut< n, delay >::FanOut ( const Bus< n > &  out,
const InputBus<> &  in 
)

The only practical constructor.

Parameters:
out The output bus containing the fanned-out lines.
in The single line input bus.

template<unsigned int n, unsigned int delay>
lcs::FanOut< n, delay >::~FanOut (  ) 

Destructor.


Member Function Documentation

template<unsigned int n, unsigned int delay>
void lcs::FanOut< n, delay >::onStateChange ( int  portId  )  [virtual]

The work-horse function of the class. A user of libLCS will never need to call this function explicitly.

Reimplemented from lcs::Module.


Copyright © 2006, 2007 Siva Chandra