
Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 11 of 14
4.3 Create a 4-bit counter sub-circuit with bus port connectors
Bus port connectors can be used like Port In and Port Out connectors in a sub-circuit. When
connecting a bus port to a breakout, make sure the corresponding pin names are exactly the same.
For example, the breakout D0-3 matches the Bus Port In that has input pins D0-3.
Here is a subcircuit with the bus ports.
D0
D1
D2
D3
Q0
Q1
Q2
Q3
CLK
LD
CLR
C0
DEV1
clear
load
clock
carry_out
Q3
Q2
Q1
Q0
D3
D2
D1
D0
Bus Port In
bus port out
4.4 Create a 4-bit counter device symbol with bus pins.
The procedure is the same as that of creating a device symbol from a subcircuit. However, pin
function for input pins should now be changed to Input. And pin function for output pins should
be Output as shown in the following picture.
When a subcircuit with bus ports is attached to a device symbol, it is possible that the pin
directions are all reversed. Therefore, it may be necessary to manually change pin directions.
Check all pin directions to make sure they are correct, i.e., output pins should have pin type of
output and input pins should have pin types of input.
load clear
clock
carry_out
D3-0
Q3-0
4-bit counter
1
2
3
4
5 10
Comentarios a estos manuales