8bit binary counter ( 4bit counter x 2 instanciated )

< Function description >

File name
8bit synchronouse counter circuit.
- Asynchronous reset.
- Carry input
- Initial value load
- Count enable
- Carry output
I/O signal
PARAM_in[8]=Initial value.
LOAD_in=Load request.
ENB_in=Count enable.
Q_out[8]=Data output.
This code shown example of hierarcy module design using ‘#include’ syntax.

It contain two 4bit synchronous counter function to build a 8bit synchronous counter.
A ‘#include’ syntax concatenate 4bit counter function as lower module and a top module provide data pins and control signals.
This operation style is called an ‘Instanciate’.

See more information in ‘CNT4.nsl’ source code.