forked from github/verilator
Fix genvars causing link error when using --public.
This commit is contained in:
parent
4b8927af75
commit
cdd6ea8e60
2
Changes
2
Changes
@ -12,6 +12,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
||||
|
||||
**** Report error if port declaration is missing; bug32. [Guy-Armand Kamendje]
|
||||
|
||||
**** Fix genvars causing link error when using --public. [Chris Candler]
|
||||
|
||||
* Verilator 3.671 2008/09/19
|
||||
|
||||
** SystemC uint64_t pins are now the default instead of sc_bv<64>.
|
||||
|
@ -47,7 +47,7 @@ int AstNodeSel::bitConst() const {
|
||||
}
|
||||
|
||||
bool AstVar::isSigPublic() const {
|
||||
return (m_sigPublic || (v3Global.opt.allPublic() && !isTemp()));
|
||||
return (m_sigPublic || (v3Global.opt.allPublic() && !isTemp() && !isGenVar()));
|
||||
}
|
||||
|
||||
bool AstVar::isScQuad() const {
|
||||
|
@ -25,7 +25,6 @@ DEBUG_ON = --debug
|
||||
######################################################################
|
||||
test_default: precopy prep preproc compile run
|
||||
test_debug: precopy prep_dbg preproc compile run
|
||||
test_nopublic: precopy prep_dbg_np preproc compile run
|
||||
|
||||
V_FLAGS = -f $(VERILATOR_ROOT)/test_v/input.vc
|
||||
VERILATOR_FLAGS = --sc $(V_FLAGS) top.v
|
||||
@ -39,8 +38,6 @@ prep:
|
||||
$(PERL) $(VERILATOR_ROOT)/bin/verilator $(VERILATOR_FLAGS)
|
||||
prep_dbg:
|
||||
$(PERL) $(VERILATOR_ROOT)/bin/verilator $(DEBUG_ON) $(VERILATOR_FLAGS)
|
||||
prep_dbg_np:
|
||||
$(PERL) $(VERILATOR_ROOT)/bin/verilator $(DEBUG_ON) $(VERILATOR_FLAGS) --nopublic
|
||||
|
||||
preproc:
|
||||
cd obj_dir ; $(MAKE) -j 1 -f ../Makefile_obj preproc
|
||||
|
@ -14,6 +14,8 @@ module t_inst(/*AUTOARG*/
|
||||
input fastclk;
|
||||
output passed; reg passed; initial passed = 0;
|
||||
|
||||
genvar unused;
|
||||
|
||||
/*AUTOWIRE*/
|
||||
// Beginning of automatic wires (for undeclared instantiated-module outputs)
|
||||
wire o_com; // From b of t_inst_b.v
|
||||
|
Loading…
Reference in New Issue
Block a user