25 Description = QObject::tr (
"logic 1 verilog device");
28 QObject::tr (
"logic 1 voltage level")
29 +
" ("+QObject::tr (
"V")+
")"));
40 p->
Props.getFirst()->Value =
Props.getFirst()->Value;
48 Name = QObject::tr(
"Logic 1");
49 BitmapFile = (
char *)
"logic_1";
51 if(getNewOne)
return new logic_1();
58 Lines.append(
new Line(-10, 0, 0, 0,QPen(QPen::darkGreen,2)));
59 Lines.append(
new Line(-20,-10,-10, 0,QPen(QPen::darkGreen,2)));
60 Lines.append(
new Line(-20, 10,-10, 0,QPen(QPen::darkGreen,2)));
61 Lines.append(
new Line(-35,-10,-20,-10,QPen(QPen::darkGreen,2)));
62 Lines.append(
new Line(-35, 10,-20, 10,QPen(QPen::darkGreen,2)));
63 Lines.append(
new Line(-35,-10,-35, 10,QPen(QPen::darkGreen,2)));
65 Texts.append(
new Text(-30,-12,
"1", QPen::darkGreen, 12.0));
77 QString
L1 =
Ports.at(0)->Connection->Name;
79 s =
"\n " +
Name +
":process\n" +
91 QString
L1 =
Ports.at(0)->Connection->Name;
93 QString v =
"net_reg" +
Name +
L1;
95 l =
"\n // " +
Name +
" logic 1\n" +
96 " assign " + L1 +
" = " + v +
";\n" +
97 " reg " + v +
" = 1;\n" +