25 Description = QObject::tr (
"logic 0 verilog device");
28 QObject::tr (
"logic 0 voltage level")
29 +
" ("+QObject::tr (
"V")+
")"));
41 p->
Props.getFirst()->Value =
Props.getFirst()->Value;
48 Name = QObject::tr(
"Logic 0");
49 BitmapFile = (
char *)
"logic_0";
51 if(getNewOne)
return new logic_0();
57 Lines.append(
new Line(-10, 0, 0, 0,QPen(Qt::darkGreen,2)));
58 Lines.append(
new Line(-20,-10,-10, 0,QPen(Qt::darkGreen,2)));
59 Lines.append(
new Line(-20, 10,-10, 0,QPen(Qt::darkGreen,2)));
60 Lines.append(
new Line(-35,-10,-20,-10,QPen(Qt::darkGreen,2)));
61 Lines.append(
new Line(-35, 10,-20, 10,QPen(Qt::darkGreen,2)));
62 Lines.append(
new Line(-35,-10,-35, 10,QPen(Qt::darkGreen,2)));
64 Texts.append(
new Text(-30,-12,
"0", Qt::darkGreen, 12.0));
76 QString LO =
Ports.at(0)->Connection->Name;
78 s =
"\n " +
Name +
":process\n" +
89 QString LO =
Ports.at(0)->Connection->Name;
91 QString v =
"net_reg" +
Name + LO;
93 l =
"\n // " +
Name +
" logic 0\n" +
94 " assign " + LO +
" = " + v +
";\n" +
95 " reg " + v +
" = 0;\n" +
static Element * info(QString &, char *&, bool getNewOne=false)
Q3PtrList< Property > Props
Superclass of all schematic drawing elements.
virtual void recreate(Schematic *)