import net.mograsim.logic.core.types.BitVector;
import net.mograsim.logic.core.wires.CoreWire.ReadEnd;
import net.mograsim.logic.core.wires.CoreWire.ReadWriteEnd;
-import net.mograsim.logic.model.model.ViewModelModifiable;
+import net.mograsim.logic.model.model.LogicModelModifiable;
import net.mograsim.logic.model.model.components.atomic.SimpleRectangularHardcodedModelComponent;
import net.mograsim.logic.model.model.wires.Pin;
import net.mograsim.logic.model.model.wires.PinUsage;
public class Modeldff12 extends SimpleRectangularHardcodedModelComponent
{
- public Modeldff12(ViewModelModifiable model, String name)
+ public Modeldff12(LogicModelModifiable model, String name)
{
- super(model, "dff12", name, "D flip flop\n12 bits");
+ super(model, "dff12", name, "D flip flop\n12 bits", false);
setSize(40, 20);
- addPin(new Pin(this, "D", 12, PinUsage.INPUT, 20, 20), Position.TOP);
- addPin(new Pin(this, "C", 1, PinUsage.INPUT, 0, 10), Position.RIGHT);
- addPin(new Pin(this, "Y", 12, PinUsage.OUTPUT, 20, 0), Position.BOTTOM);
+ addPin(new Pin(model, this, "D", 12, PinUsage.INPUT, 20, 20), Position.TOP);
+ addPin(new Pin(model, this, "C", 1, PinUsage.INPUT, 0, 10), Position.RIGHT);
+ addPin(new Pin(model, this, "Y", 12, PinUsage.OUTPUT, 20, 0), Position.BOTTOM);
+
+ init();
}
@Override