28 Lines.append(
new Line(-10, 0, 0, 0,QPen(QPen::darkGreen,2)));
29 Lines.append(
new Line(-20,-10,-10, 0,QPen(QPen::darkGreen,2)));
30 Lines.append(
new Line(-20, 10,-10, 0,QPen(QPen::darkGreen,2)));
31 Lines.append(
new Line(-35,-10,-20,-10,QPen(QPen::darkGreen,2)));
32 Lines.append(
new Line(-35, 10,-20, 10,QPen(QPen::darkGreen,2)));
33 Lines.append(
new Line(-35,-10,-35, 10,QPen(QPen::darkGreen,2)));
35 Lines.append(
new Line(-32, 5,-28, 5,QPen(QPen::darkGreen,2)));
36 Lines.append(
new Line(-28,-5,-24,-5,QPen(QPen::darkGreen,2)));
37 Lines.append(
new Line(-24, 5,-20, 5,QPen(QPen::darkGreen,2)));
38 Lines.append(
new Line(-28,-5,-28, 5,QPen(QPen::darkGreen,2)));
39 Lines.append(
new Line(-24,-5,-24, 5,QPen(QPen::darkGreen,2)));
53 QObject::tr(
"number of the port")));
55 QObject::tr(
"initial output value")+
" [low, high]"));
57 QObject::tr(
"list of times for changing output value")));
59 QObject::tr(
"voltage of high level")));
76 Name = QObject::tr(
"digital source");
77 BitmapFile = (
char *)
"digi_source";
89 s +=
" "+
Ports.getFirst()->Connection->Name;
107 QString Out(
" " +
Ports.getFirst()->Connection->Name +
" <= '");
109 s =
"\n " +
Name +
":process\n begin\n";
114 if(
Props.at(1)->Value ==
"low")
119 t =
Props.next()->Value.section(
';',z,z).stripWhiteSpace();
120 while(!t.isEmpty()) {
121 s += Out + State +
"';";
126 s += t.replace(
"after",
"wait for") +
";\n";
129 t =
Props.current()->Value.section(
';',z,z).stripWhiteSpace();
134 int Num =
Props.getFirst()->Value.toInt() - 1;
136 s += Out + State +
"';";
137 s +=
" wait for "+QString::number(1 << Num)+
" ns;\n";
139 s += Out + State +
"';";
140 s +=
" wait for "+QString::number(1 << Num)+
" ns;\n";
143 s +=
" end process;\n";
152 n =
Ports.getFirst()->Connection->Name;
153 r =
"net_src" +
Name +
n;
154 s =
"\n // " +
Name +
" digital source\n";
155 s +=
" assign " + n +
" = " + r +
";\n";
156 s +=
" reg " + r +
";\n";
161 if(
Props.at(1)->Value ==
"low")
165 s +=
" always begin\n";
167 t =
Props.next()->Value.section(
';',z,z).stripWhiteSpace();
168 while(!t.isEmpty()) {
171 s +=
" " + r +
" = " + State +
";\n";
172 s +=
" " + t +
";\n";
175 t =
Props.current()->Value.section(
';',z,z).stripWhiteSpace();
179 int Num =
Props.getFirst()->Value.toInt() - 1;
180 s +=
" always begin\n";
181 s +=
" " + r +
" = 0;\n";
182 s +=
" #"+ QString::number(1 << Num) +
";\n";
183 s +=
" " + r +
" = !" + r +
";\n";
184 s +=
" #"+ QString::number(1 << Num) +
";\n";