Esempio n. 1
0
 public Sim(Circuit circuit)
 {
     this.circuit = circuit;
     layerGroups = new List<CellLayerGroup>();
     LayerSubGroups = new List<CellLayerGroup>();
     gates = new List<Cell>();
     subGates = new List<Cell>();
 }
Esempio n. 2
0
        public Cell(int x, int y, Circuit circuit)
        {
            this.circuit = circuit;
            this.x = x;
            this.y = y;

            layers = new CellLayer[Enum.GetValues(typeof(LayerType)).Length];
            for (int clid = 0; clid < layers.Length; clid++) {
                layers[clid] = new CellLayer((Cell.LayerType)Enum.GetValues(typeof(Cell.LayerType)).GetValue(clid), this);
            }
        }