diff --git a/tgt-vhdl/vhdl_syntax.cc b/tgt-vhdl/vhdl_syntax.cc index 6bb246e4d..e24a40cfb 100644 --- a/tgt-vhdl/vhdl_syntax.cc +++ b/tgt-vhdl/vhdl_syntax.cc @@ -768,7 +768,7 @@ void vhdl_bit_spec_expr::emit(std::ostream &of, int level) const } if (others_) { - of << ", others => "; + of << (bits_.empty() ? "" : ", ") << "others => "; others_->emit(of, level); }