From 93e5a72d84e65384588c6be2f15e3cf0172ad82e Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sun, 16 Oct 2011 11:01:32 -0700 Subject: [PATCH] Get parameter output syntax right for vhdlpp. --- vhdlpp/entity_emit.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vhdlpp/entity_emit.cc b/vhdlpp/entity_emit.cc index 92d652562..6361c6eaf 100644 --- a/vhdlpp/entity_emit.cc +++ b/vhdlpp/entity_emit.cc @@ -40,7 +40,8 @@ int Entity::emit(ostream&out) { int errors = 0; - out << "module "; + out << "module \\" << get_name() << " "; + // If there are generics, emit them if (parms_.size() > 0) { out << "#("; @@ -56,8 +57,6 @@ int Entity::emit(ostream&out) out << ") "; } - out << get_name(); - // If there are ports, emit them. if (ports_.size() > 0) { out << "(";