Allow generate schemes to generate task/function definitions.

Generating task/function definitions involves getting the functions
to put themselves into the generate scheme instead of the module,
and getting elaboration to elaborate those definitions in the
generate scheme.
This commit is contained in:
Stephen Williams
2008-06-18 21:54:58 -07:00
parent ce9fd0147f
commit 2f3627cd6d
8 changed files with 162 additions and 107 deletions
-10
View File
@@ -41,16 +41,6 @@ void Module::add_gate(PGate*gate)
gates_.push_back(gate);
}
void Module::add_task(perm_string name, PTask*task)
{
tasks_[name] = task;
}
void Module::add_function(perm_string name, PFunction *func)
{
funcs_[name] = func;
}
unsigned Module::port_count() const
{
return ports.count();