WOLFRAM SYSTEM MODELER
    CounterGeneric N Bit Counter  | 
     | 
SystemModel["Modelica.Electrical.Digital.Examples.Utilities.Counter"]

This information is part of the Modelica Standard Library maintained by the Modelica Association.
The Counter is a generic component, which counts the high-low slopes of the count signal, if the enable signal is set to be true. It is composed by n JK flipflops. q is the resulting number, where q[0] is the lowest, and q[n] the highest bit.
| enable | 
         Type: DigitalInput Description: Input DigitalSignal as connector  | 
    |
|---|---|---|
| count | 
         Type: DigitalInput Description: Input DigitalSignal as connector  | 
    |
| q | 
         Type: DigitalOutput[n] Description: Output DigitalSignal as connector  | 
    
| FF | 
         Type: JKFF[n] Description: JK FlipFlop  | 
    
|---|
| 
        
         Modelica.Electrical.Digital.Examples Generic N Bit Counter Example  |