Counter3

3 Bit Counter

Diagram

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

The Counter3 counts the high-low slopes of the count signal, if the enable signal is set to be true. It is composed by three JK flipflops. q0, q1, and q2 are the bits of the resulting number, where q0 is the lowest, and q2 the highest bit.

Connectors (5)

enable

Type: DigitalInput

q2

Type: DigitalOutput

count

Type: DigitalInput

q1

Type: DigitalOutput

q0

Type: DigitalOutput

Components (3)

FF1

Type: JKFF

FF2

Type: JKFF

FF3

Type: JKFF

Used in Examples (2)

FullAdder

Modelica.Electrical.Digital.Examples

Full 1 Bit Adder Example

Counter3

Modelica.Electrical.Digital.Examples

3 Bit Counter Example