2 * Copyright (c) 1998-2008 Stephen Williams <steve@icarus.com>
4 * This source code is free software; you can redistribute it
5 * and/or modify it in source code form under the terms of the GNU
6 * General Public License as published by the Free Software
7 * Foundation; either version 2 of the License, or (at your option)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
31 void target_t::scope(const NetScope
*)
35 void target_t::event(const NetEvent
*ev
)
37 cerr
<< ev
->get_fileline() << ": error: target (" << typeid(*this).name()
38 << "): Unhandled event <" << ev
->name() << ">." << endl
;
41 bool target_t::signal_paths(const NetNet
*)
45 bool target_t::func_def(const NetScope
*)
47 cerr
<< "target (" << typeid(*this).name() << "): "
48 "Unhandled function definition." << endl
;
52 void target_t::task_def(const NetScope
*)
54 cerr
<< "target (" << typeid(*this).name() << "): "
55 "Unhandled task definition." << endl
;
58 void target_t::logic(const NetLogic
*)
60 cerr
<< "target (" << typeid(*this).name() << "): "
61 "Unhandled logic gate" << endl
;
64 bool target_t::tran(const NetTran
*)
66 cerr
<< "target (" << typeid(*this).name() << "): "
67 << "TRAN devices not supported." << endl
;
71 bool target_t::bufz(const NetBUFZ
*)
73 cerr
<< "target (" << typeid(*this).name() << "): "
74 "Unhandled continuous assign (BUFZ)." << endl
;
78 void target_t::udp(const NetUDP
*)
80 cerr
<< "target (" << typeid(*this).name() << "): "
81 "Unhandled UDP." << endl
;
84 bool target_t::ureduce(const NetUReduce
*)
86 cerr
<< "target (" << typeid(*this).name() << "): "
87 "Unhandled unary reduction logic gate." << endl
;
91 void target_t::lpm_abs(const NetAbs
*)
93 cerr
<< "target (" << typeid(*this).name() << "): "
94 "Unhandled NetAbs." << endl
;
97 void target_t::lpm_add_sub(const NetAddSub
*)
99 cerr
<< "target (" << typeid(*this).name() << "): "
100 "Unhandled NetAddSub." << endl
;
103 bool target_t::lpm_array_dq(const NetArrayDq
*)
105 cerr
<< "target (" << typeid(*this).name() << "): "
106 "Unhandled NetArrayDq." << endl
;
110 void target_t::lpm_clshift(const NetCLShift
*)
112 cerr
<< "target (" << typeid(*this).name() << "): "
113 "Unhandled NetCLShift." << endl
;
116 void target_t::lpm_compare(const NetCompare
*)
118 cerr
<< "target (" << typeid(*this).name() << "): "
119 "Unhandled NetCompare." << endl
;
122 void target_t::lpm_divide(const NetDivide
*)
124 cerr
<< "target (" << typeid(*this).name() << "): "
125 "Unhandled NetDivide." << endl
;
128 void target_t::lpm_modulo(const NetModulo
*)
130 cerr
<< "target (" << typeid(*this).name() << "): "
131 "Unhandled NetModulo." << endl
;
134 void target_t::lpm_ff(const NetFF
*)
136 cerr
<< "target (" << typeid(*this).name() << "): "
137 "Unhandled NetFF." << endl
;
140 void target_t::lpm_mult(const NetMult
*)
142 cerr
<< "target (" << typeid(*this).name() << "): "
143 "Unhandled NetMult." << endl
;
146 void target_t::lpm_mux(const NetMux
*)
148 cerr
<< "target (" << typeid(*this).name() << "): "
149 "Unhandled NetMux." << endl
;
152 void target_t::lpm_pow(const NetPow
*)
154 cerr
<< "target (" << typeid(*this).name() << "): "
155 "Unhandled NetPow." << endl
;
158 bool target_t::concat(const NetConcat
*)
160 cerr
<< "target (" << typeid(*this).name() << "): "
161 "Unhandled NetConcat." << endl
;
165 bool target_t::part_select(const NetPartSelect
*)
167 cerr
<< "target (" << typeid(*this).name() << "): "
168 "Unhandled NetPartSelect." << endl
;
172 bool target_t::replicate(const NetReplicate
*)
174 cerr
<< "target (" << typeid(*this).name() << "): "
175 "Unhandled NetReplicate." << endl
;
179 void target_t::net_case_cmp(const NetCaseCmp
*)
181 cerr
<< "target (" << typeid(*this).name() << "): "
182 "Unhandled case compare node." << endl
;
185 bool target_t::net_const(const NetConst
*)
187 cerr
<< "target (" << typeid(*this).name() << "): "
188 "Unhandled CONSTANT node." << endl
;
192 bool target_t::net_sysfunction(const NetSysFunc
*net
)
194 cerr
<< "target (" << typeid(*this).name() << "): "
195 "Unhandled NetSysFunc node." << endl
;
199 bool target_t::net_function(const NetUserFunc
*net
)
201 cerr
<< "target (" << typeid(*this).name() << "): "
202 "Unhandled NetUserFunc node." << endl
;
206 bool target_t::net_literal(const NetLiteral
*)
208 cerr
<< "target (" << typeid(*this).name() << "): "
209 "Unhandled LITERAL node." << endl
;
213 void target_t::net_probe(const NetEvProbe
*net
)
215 cerr
<< "target (" << typeid(*this).name() << "): "
216 "Unhandled probe trigger node" << endl
;
217 net
->dump_node(cerr
, 4);
220 bool target_t::sign_extend(const NetSignExtend
*net
)
222 cerr
<< "target (" << typeid(*this).name() << "): "
223 "Unhandled NetSignExtend node." << endl
;
227 bool target_t::process(const NetProcTop
*top
)
229 return top
->statement()->emit_proc(this);
232 void target_t::proc_assign(const NetAssign
*)
234 cerr
<< "target (" << typeid(*this).name() << "): "
235 "Unhandled procedural assignment." << endl
;
238 void target_t::proc_assign_nb(const NetAssignNB
*)
240 cerr
<< "target (" << typeid(*this).name() << "): "
241 "Unhandled non-blocking assignment." << endl
;
244 bool target_t::proc_block(const NetBlock
*)
246 cerr
<< "target (" << typeid(*this).name() << "): "
247 "Unhandled proc_block." << endl
;
251 void target_t::proc_case(const NetCase
*cur
)
253 cerr
<< "target (" << typeid(*this).name() << "): "
254 "Unhandled case:" << endl
;
258 bool target_t::proc_cassign(const NetCAssign
*dev
)
260 cerr
<< "target (" << typeid(*this).name() << "): ";
261 cerr
<< dev
->get_fileline();
262 cerr
<< ": Target does not support procedural continuous assignment." << endl
;
266 bool target_t::proc_condit(const NetCondit
*condit
)
268 cerr
<< "target (" << typeid(*this).name() << "): "
269 "Unhandled conditional:" << endl
;
270 condit
->dump(cerr
, 6);
274 bool target_t::proc_deassign(const NetDeassign
*dev
)
276 cerr
<< dev
->get_fileline() << ": internal error: "
277 << "target (" << typeid(*this).name() << "): "
278 << "Unhandled proc_deassign." << endl
;
282 bool target_t::proc_delay(const NetPDelay
*)
284 cerr
<< "target (" << typeid(*this).name() << "): "
285 "Unhandled proc_delay." << endl
;
289 bool target_t::proc_disable(const NetDisable
*obj
)
291 cerr
<< obj
->get_fileline() << ": internal error: "
292 << "target (" << typeid(*this).name() << "): "
293 << "does not support disable statements." << endl
;
297 bool target_t::proc_force(const NetForce
*dev
)
299 cerr
<< "target (" << typeid(*this).name() << "): "
300 "Unhandled proc_force." << endl
;
304 void target_t::proc_forever(const NetForever
*)
306 cerr
<< "target (" << typeid(*this).name() << "): "
307 "Unhandled proc_forever." << endl
;
310 bool target_t::proc_release(const NetRelease
*dev
)
312 cerr
<< dev
->get_fileline() << ": internal error: "
313 << "target (" << typeid(*this).name() << "): "
314 << "Unhandled proc_release." << endl
;
318 void target_t::proc_repeat(const NetRepeat
*)
320 cerr
<< "target (" << typeid(*this).name() << "): "
321 "Unhandled proc_repeat." << endl
;
324 bool target_t::proc_trigger(const NetEvTrig
*tr
)
326 cerr
<< tr
->get_fileline() << ": error: target (" << typeid(*this).name()
327 << "): Unhandled event trigger." << endl
;
331 void target_t::proc_stask(const NetSTask
*)
333 cerr
<< "target (" << typeid(*this).name() << "): "
334 "Unhandled proc_stask." << endl
;
337 void target_t::proc_utask(const NetUTask
*)
339 cerr
<< "target (" << typeid(*this).name() << "): "
340 "Unhandled proc_utask." << endl
;
343 bool target_t::proc_wait(const NetEvWait
*tr
)
345 cerr
<< tr
->get_fileline() << ": error: target (" << typeid(*this).name()
346 << "): Unhandled event wait." << endl
;
350 void target_t::proc_while(const NetWhile
*net
)
352 cerr
<< "target (" << typeid(*this).name() << "): "
353 "Unhandled while:" << endl
;
357 int target_t::end_design(const Design
*)
362 expr_scan_t::~expr_scan_t()
366 void expr_scan_t::expr_const(const NetEConst
*)
368 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
369 "unhandled expr_const." << endl
;
372 void expr_scan_t::expr_param(const NetEConstParam
*that
)
377 void expr_scan_t::expr_creal(const NetECReal
*)
379 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
380 "unhandled expr_creal." << endl
;
383 void expr_scan_t::expr_rparam(const NetECRealParam
*that
)
388 void expr_scan_t::expr_concat(const NetEConcat
*that
)
390 cerr
<< that
->get_fileline() << ": expr_scan_t (" <<
391 typeid(*this).name() << "): unhandled expr_concat." << endl
;
393 void expr_scan_t::expr_event(const NetEEvent
*)
395 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
396 "unhandled expr_event." << endl
;
399 void expr_scan_t::expr_scope(const NetEScope
*)
401 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
402 "unhandled expr_scope." << endl
;
405 void expr_scan_t::expr_select(const NetESelect
*)
407 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
408 "unhandled expr_select." << endl
;
411 void expr_scan_t::expr_sfunc(const NetESFunc
*)
413 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
414 "unhandled expr_sfunc." << endl
;
417 void expr_scan_t::expr_signal(const NetESignal
*)
419 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
420 "unhandled expr_signal." << endl
;
423 void expr_scan_t::expr_ternary(const NetETernary
*)
425 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
426 "unhandled expr_ternary." << endl
;
429 void expr_scan_t::expr_ufunc(const NetEUFunc
*)
431 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
432 "unhandled function call." << endl
;
435 void expr_scan_t::expr_unary(const NetEUnary
*)
437 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
438 "unhandled expr_unary." << endl
;
441 void expr_scan_t::expr_binary(const NetEBinary
*ex
)
443 cerr
<< "expr_scan_t (" << typeid(*this).name() << "): "
444 "unhandled expr_binary: " <<*ex
<< endl
;