mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
rtlil: Make Process handling more uniform with Cell and Wire.
- add a backlink to module from Process - make constructor and destructor protected, expose Module functions to add and remove processes
This commit is contained in:
parent
726fabd65e
commit
009940f56c
8 changed files with 62 additions and 25 deletions
|
@ -283,10 +283,8 @@ proc_stmt:
|
|||
TOK_PROCESS TOK_ID EOL {
|
||||
if (current_module->processes.count($2) != 0)
|
||||
rtlil_frontend_yyerror(stringf("RTLIL error: redefinition of process %s.", $2).c_str());
|
||||
current_process = new RTLIL::Process;
|
||||
current_process->name = $2;
|
||||
current_process = current_module->addProcess($2);
|
||||
current_process->attributes = attrbuf;
|
||||
current_module->processes[$2] = current_process;
|
||||
switch_stack.clear();
|
||||
switch_stack.push_back(¤t_process->root_case.switches);
|
||||
case_stack.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue