From 8a1543aaafdb4383601b9b194e070954e239e82b Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 25 Feb 2008 09:44:57 -0800 Subject: [PATCH] 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. --- expr_synth.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expr_synth.cc b/expr_synth.cc index 761292368..9f29937ac 100644 --- a/expr_synth.cc +++ b/expr_synth.cc @@ -869,7 +869,8 @@ NetNet* NetFuncDef::synthesize(Design*des, const svector&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();