Esempio n. 1
0
        public static void Main(string[] args)
        {
            string edfName = "d_trig";//"adder";//"ha_2tg";

            edfName = edfName.Split('.')[0];
            Scanner scanner = new Scanner(edfName + ".edf");//xor2v8_1 adder
            Parser parser = new Parser(scanner);
            parser.Parse();
            Transistors tr = parser.transList;

            Console.WriteLine("Transistors:");
            tr.PortsReport();

            DateTime start1 = System.DateTime.Now;

            int countVars = tr.PlaceTransN();

            tr.ChooseTransNSet(0);

            tr.PlaceTransP();

            tr.PortsLinesReport();

            tr.InitTransistors();

            DateTime start2 = System.DateTime.Now;
            TimeSpan sp1 = start2 - start1;
            double delta1 = ((double)((int)sp1.TotalMilliseconds)) / 1000.0;
            Console.WriteLine("placing = " + delta1 + " seconds");

            int curModel = Params.ModelBusM2InMiddle;
            Params.SetModel(curModel);
            string vlfName = edfName + "_" + Params.GetShortName(curModel);
            //CompileOneModel(vlfName, tr);
            CompileTransLines(vlfName, tr);
        }
Esempio n. 2
0
 /*--------------------------------------------------------------------------*/
 public Parser(Scanner scanner)
 {
     this.scanner = scanner;
     errors = new Errors();
 }