vhdlpp: generics without a default value are set to 1'bx.
This commit is contained in:
parent
25458b8cc2
commit
9231ad51a4
|
|
@ -50,10 +50,13 @@ int Entity::emit(ostream&out)
|
||||||
const InterfacePort*curp = *cur;
|
const InterfacePort*curp = *cur;
|
||||||
if (cur != parms_.begin())
|
if (cur != parms_.begin())
|
||||||
out << ", ";
|
out << ", ";
|
||||||
out << "parameter \\" << curp->name << " ";
|
out << "parameter \\" << curp->name << " = ";
|
||||||
if(curp->expr) {
|
if(curp->expr) {
|
||||||
out << "= ";
|
|
||||||
errors += curp->expr->emit(out, this, 0);
|
errors += curp->expr->emit(out, this, 0);
|
||||||
|
} else {
|
||||||
|
// Unlike VHDL, Verilog module parameter port list
|
||||||
|
// elements are always assignments. Fill in the blank.
|
||||||
|
out << "1'bx";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out << ") ";
|
out << ") ";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue