mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Fix backward widths in function output warning
This commit is contained in:
parent
764399256c
commit
4637e06ad2
@ -1246,9 +1246,9 @@ private:
|
||||
if ((portp->isOutput() || portp->isInout())
|
||||
&& pinp->width() != portp->width()) {
|
||||
pinp->v3error("Unsupported: Function output argument '"<<portp->prettyName()<<"'"
|
||||
<<" requires "<<pinp->width()
|
||||
<<" requires "<<portp->width()
|
||||
<<" bits, but connection's "<<pinp->prettyTypeName()
|
||||
<<" generates "<<portp->width()<<" bits.");
|
||||
<<" generates "<<pinp->width()<<" bits.");
|
||||
// otherwise would need some mess to force both sides to proper size
|
||||
// (get an ASSIGN with EXTEND on the lhs instead of rhs)
|
||||
}
|
||||
|
@ -42,7 +42,11 @@ ifeq ($(VM_SP_OR_SC),1)
|
||||
LIBS += $(SC_LIBS)
|
||||
endif
|
||||
|
||||
#Default compile, using normal make rules
|
||||
#Default compile, pick up OBJCACHE
|
||||
%.o: %.cpp
|
||||
$(OBJCACHE) $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
|
||||
|
||||
#Default link, using normal make rules
|
||||
#$(VM_PREFIX): $(VK_GLOBAL_OBJS) $(VK_OBJS)
|
||||
# $(LINK) $(LDFLAGS) -g $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LIBS) 2>&1 | c++filt
|
||||
|
||||
|
@ -11,7 +11,7 @@ compile (
|
||||
v_flags2 => ["--lint-only"],
|
||||
fails=>1,
|
||||
expect=>
|
||||
q{%Error: t/t_func_wide_out_bad.v:\d+: Unsupported: Function output argument 'data' requires 4350 bits, but connection's VARREF 'msg' generates 4352 bits.
|
||||
q{%Error: t/t_func_wide_out_bad.v:\d+: Unsupported: Function output argument 'data' requires 4352 bits, but connection's VARREF 'msg' generates 4350 bits.
|
||||
%Error: Exiting due to.*},
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user