super("Counter", Strings.getter("counterComponent"));
setOffsetBounds(Bounds.create(-30, -20, 30, 40));
setIconName("counter.gif");
setInstancePoker(RegisterPoker.class);
setInstanceLogger(RegisterLogger.class);
setKeyConfigurator(new BitWidthConfigurator(StdAttr.WIDTH));
Port[] ps = new Port[7];
ps[OUT] = new Port( 0, 0, Port.OUTPUT, StdAttr.WIDTH);
ps[IN] = new Port(-30, 0, Port.INPUT, StdAttr.WIDTH);
ps[CK] = new Port(-20, 20, Port.INPUT, 1);