WOLFRAM SYSTEM MODELER

Counter3

3 Bit Counter Example

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Electrical.Digital.Examples.Counter3"]
Out[1]:=

Information

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

The three bit counter example is built up by components of the Utilities package which uses components of the Gates library.

The counter counts the high-low slopes of the clock signal, if the enable signal is set to be true. Otherwise if it is set to zero the counter is not counting.

Plot Counter.count (clock signal), and Counter.enable, and the output bit signals Counter.q0, Counter.q1, and Counter.q2.

Components (3)

Enable

Type: Step

Description: Digital Step Source

clock

Type: DigitalClock

Description: Digital Clock Source

Counter

Type: Counter3

Description: 3 Bit Counter