modelCounter
Generic N Bit Counter
Information
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | 3 | Number of bits |
| SI.Time | delayTime | 0.001 | Delay of each JKFF |
| D.Interfaces.Logic | q0 | L.'0' | Initial value |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| D.Interfaces.DigitalInput | enable | ||
| D.Interfaces.DigitalInput | count | ||
| D.Interfaces.DigitalOutput[n] | q |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| D.Examples.Utilities.JKFF[n] | FF |