BinaryCounter Class Reference

4 Bit Binary Counter More...

#include <binarycounter.h>

Inheritance diagram for BinaryCounter:

Inheritance graph
[legend]
Collaboration diagram for BinaryCounter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BinaryCounter (ICNDocument *icnDocument, bool newItem, const char *id=0)
 ~BinaryCounter ()
virtual bool canFlip () const

Static Public Member Functions

static Itemconstruct (ItemDocument *itemDocument, bool newItem, const char *id)
static LibraryItemlibraryItem ()

Protected Member Functions

void inStateChanged (bool state)
void rStateChanged (bool state)
void enStateChanged (bool state)
void udStateChanged (bool state)
void outputValue ()
void dataChanged ()
void initPins (unsigned numBits)

Protected Attributes

LogicInenLogic
LogicIninLogic
LogicInrLogic
LogicInudLogic
LogicOutm_pLogicOut [26]
unsigned m_numBits
bool b_triggerHigh
bool b_en
bool b_ud
bool b_oldIn
bool b_reset
long m_value
long m_maxValue
bool m_bDoneLogicIn

Detailed Description

4 Bit Binary Counter

Simple logic counter. 4 Inputs, 4 Outputs.

Outputs (A-D) represent the stored value (0-15). The inputs are:

Author:
David Saxton
TODO: re-implement as a "microcode" for a generic logic device simulator.

Definition at line 33 of file binarycounter.h.


Member Function Documentation

virtual bool BinaryCounter::canFlip (  )  const [inline, virtual]

Whether or not we can flip the item

Reimplemented from Item.

Definition at line 39 of file binarycounter.h.


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:34 2007 for KTechLab by  doxygen 1.5.1