- A Logic Circuit Simulation Library in C++





lcs::FrequencyDivider< factor > Class Template Reference

#include <freqdiv.h>

Inheritance diagram for lcs::FrequencyDivider< factor >:

lcs::Module List of all members.

Detailed Description

template<unsigned int factor>
class lcs::FrequencyDivider< factor >

A module which divides the frequency of the input signal by a specified factor. The factor is indicated by the template parameter.


Public Member Functions

 FrequencyDivider (const Bus< 1 > &output, const InputBus< 1 > &input)
virtual ~FrequencyDivider ()
virtual void onPosEdge (int portId)


Constructor & Destructor Documentation

template<unsigned int factor>
lcs::FrequencyDivider< factor >::FrequencyDivider ( const Bus< 1 > &  output,
const InputBus< 1 > &  input 
)

The only usefull constructor for the class. The default constructor, if synthesised by the compiler, is practically useless.

Parameters:
output The bus of the module.
input The input bus of the module.

template<unsigned int factor>
virtual lcs::FrequencyDivider< factor >::~FrequencyDivider (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<unsigned int factor>
void lcs::FrequencyDivider< factor >::onPosEdge ( int  portId  )  [virtual]

Function which toggles the output line state at the suitable positive edge. A user of libLCS will never need to use this function directly/explicitly.

Reimplemented from lcs::Module.


Copyright © 2006, 2007 Siva Chandra