|
9 | 9 | #ifndef CPROVER_VERILOG_SYNTHESIS_CLASS_H
|
10 | 10 | #define CPROVER_VERILOG_SYNTHESIS_CLASS_H
|
11 | 11 |
|
12 |
| -#include <cassert> |
13 |
| -#include <map> |
14 |
| -#include <set> |
15 |
| -#include <unordered_set> |
16 |
| - |
17 | 12 | #include <util/mathematical_expr.h>
|
18 | 13 | #include <util/mp_arith.h>
|
19 | 14 | #include <util/options.h>
|
20 | 15 | #include <util/std_expr.h>
|
21 | 16 | #include <util/string_hash.h>
|
22 | 17 |
|
23 |
| -#include "verilog_typecheck_base.h" |
| 18 | +#include "verilog_expr.h" |
24 | 19 | #include "verilog_symbol_table.h"
|
| 20 | +#include "verilog_typecheck_base.h" |
| 21 | + |
| 22 | +#include <cassert> |
| 23 | +#include <map> |
| 24 | +#include <set> |
| 25 | +#include <unordered_set> |
25 | 26 |
|
26 | 27 | /*******************************************************************\
|
27 | 28 |
|
@@ -201,36 +202,36 @@ class verilog_synthesist:
|
201 | 202 |
|
202 | 203 | // module items
|
203 | 204 | virtual void convert_module_items(symbolt &);
|
204 |
| - void synth_module_item(const class verilog_module_itemt &, transt &); |
205 |
| - void synth_always(const class verilog_alwayst &); |
206 |
| - void synth_initial(const class verilog_initialt &); |
207 |
| - void synth_assert_module_item(const class verilog_module_itemt &); |
208 |
| - void synth_assume_module_item(const class verilog_module_itemt &); |
209 |
| - void synth_continuous_assign(const class verilog_continuous_assignt &); |
| 205 | + void synth_module_item(const verilog_module_itemt &, transt &); |
| 206 | + void synth_always(const verilog_alwayst &); |
| 207 | + void synth_initial(const verilog_initialt &); |
| 208 | + void synth_assert_module_item(const verilog_module_itemt &); |
| 209 | + void synth_assume_module_item(const verilog_module_itemt &); |
| 210 | + void synth_continuous_assign(const verilog_continuous_assignt &); |
210 | 211 | void synth_force_rec(exprt &lhs, exprt &rhs, transt &);
|
211 |
| - void synth_module_instance(const class verilog_instt &, transt &); |
212 |
| - void synth_module_instance_builtin(const class verilog_inst_builtint &, transt &); |
| 212 | + void synth_module_instance(const verilog_instt &, transt &); |
| 213 | + void synth_module_instance_builtin(const verilog_inst_builtint &, transt &); |
213 | 214 |
|
214 | 215 | // statements
|
215 |
| - void synth_statement(const class verilog_statementt &); |
216 |
| - void synth_decl(const class verilog_declt &); |
217 |
| - void synth_block(const class verilog_blockt &); |
218 |
| - void synth_case(const class verilog_statementt &); |
219 |
| - void synth_if(const class verilog_ift &); |
220 |
| - void synth_event_guard(const class verilog_event_guardt &); |
221 |
| - void synth_delay(const class verilog_delayt &); |
222 |
| - void synth_for(const class verilog_fort &); |
223 |
| - void synth_force(const class verilog_forcet &); |
| 216 | + void synth_statement(const verilog_statementt &); |
| 217 | + void synth_decl(const verilog_declt &); |
| 218 | + void synth_block(const verilog_blockt &); |
| 219 | + void synth_case(const verilog_statementt &); |
| 220 | + void synth_if(const verilog_ift &); |
| 221 | + void synth_event_guard(const verilog_event_guardt &); |
| 222 | + void synth_delay(const verilog_delayt &); |
| 223 | + void synth_for(const verilog_fort &); |
| 224 | + void synth_force(const verilog_forcet &); |
224 | 225 | void synth_force_rec(const exprt &lhs, const exprt &rhs);
|
225 |
| - void synth_forever(const class verilog_forevert &); |
226 |
| - void synth_while(const class verilog_whilet &); |
227 |
| - void synth_repeat(const class verilog_repeatt &); |
228 |
| - void synth_function_call_or_task_enable(const class verilog_function_callt &); |
| 226 | + void synth_forever(const verilog_forevert &); |
| 227 | + void synth_while(const verilog_whilet &); |
| 228 | + void synth_repeat(const verilog_repeatt &); |
| 229 | + void synth_function_call_or_task_enable(const verilog_function_callt &); |
229 | 230 | [[nodiscard]] exprt synth_expr(exprt expr, symbol_statet symbol_state);
|
230 | 231 | void synth_assign(const exprt &, bool blocking);
|
231 |
| - void synth_assert(const class verilog_assertt &); |
232 |
| - void synth_assume(const class verilog_assumet &); |
233 |
| - void synth_prepostincdec(const class verilog_statementt &); |
| 232 | + void synth_assert(const verilog_assertt &); |
| 233 | + void synth_assume(const verilog_assumet &); |
| 234 | + void synth_prepostincdec(const verilog_statementt &); |
234 | 235 | void synth_assignments(transt &);
|
235 | 236 |
|
236 | 237 | exprt make_supply_value(const irep_idt &decl_class, const typet &);
|
@@ -259,8 +260,8 @@ class verilog_synthesist:
|
259 | 260 | const exprt &case_operand);
|
260 | 261 |
|
261 | 262 | void expand_module_instance(
|
262 |
| - const symbolt &symbol, |
263 |
| - const exprt &op, |
| 263 | + const symbolt &module_symbol, |
| 264 | + const verilog_instt::instancet &, |
264 | 265 | transt &trans);
|
265 | 266 |
|
266 | 267 | void expand_hierarchical_identifier(
|
|
0 commit comments