示例#1
0
        //static NETLIST_START(filter)
        void netlist_filter(netlist.nlparse_t setup)
        {
            netlist.helper h = new netlist.helper();

            h.NETLIST_START(setup);

            h.CD4066_GATE("G1");
            h.PARAM("G1.BASER", 270.0);
            h.CD4066_GATE("G2");
            h.PARAM("G2.BASER", 270.0);
            h.RES("RI", RES_K(1));
            h.RES("RO", RES_K(5));
            h.CAP("C1", CAP_U(0.22));
            h.CAP("C2", CAP_U(0.047));
            h.NET_C("RI.2", "RO.1", "G1.R.1", "G2.R.1");
            h.NET_C("G1.R.2", "C1.1");
            h.NET_C("G2.R.2", "C2.1");

            h.NET_C("C1.2", "C2.2", "G1.VSS", "G2.VSS");
            h.NET_C("G1.VDD", "G2.VDD");

            h.ALIAS("I", "RI.1");
            h.ALIAS("O", "RO.2");

            h.ALIAS("CTL1", "G1.CTL");
            h.ALIAS("CTL2", "G2.CTL");

            h.ALIAS("VDD", "G1.VDD");
            h.ALIAS("VSS", "G1.VSS");

            h.NETLIST_END();
        }