V0.8: pad user function port in synthesize().

This patch removes the assert in synthesize() for user functions and
replaces it with a pad to width.
This commit is contained in:
Cary R 2008-02-25 09:44:57 -08:00 committed by Stephen Williams
parent c6ba9269bc
commit 8a1543aaaf
1 changed files with 2 additions and 1 deletions

View File

@ -869,7 +869,8 @@ NetNet* NetFuncDef::synthesize(Design*des, const svector<NetNet*>&inports_)
NetNet*in = inports_[idx];
NetNet*arg = ports_[idx];
assert(in->pin_count() == arg->pin_count());
in = pad_to_width(des, in, arg->pin_count());
for (unsigned pin = 0 ; pin < arg->pin_count() ; pin += 1) {
connect(in->pin(pin), arg->pin(pin));
arg->pin(pin).unlink();