From b96e471fa2de7ba1bece010d142db7dee5324d7f Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Mon, 9 Jun 2008 14:08:27 +0100 Subject: [PATCH] Stub code for handling logic gates --- tgt-vhdl/scope.cc | 12 ++++++++++++ tgt-vhdl/vhdl_syntax.cc | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tgt-vhdl/scope.cc b/tgt-vhdl/scope.cc index b6f19d57a..44c47bc1f 100644 --- a/tgt-vhdl/scope.cc +++ b/tgt-vhdl/scope.cc @@ -25,6 +25,15 @@ #include #include +/* + * Translate all the primitive logic gates into concurrent + * signal assignments. + */ +static void declare_logic(vhdl_arch *arch, ivl_scope_t scope) +{ + +} + /* * Declare all signals for a scope in an architecture. */ @@ -71,6 +80,9 @@ static vhdl_entity *create_entity_for(ivl_scope_t scope) // the architecture declare_signals(arch, scope); + // Similarly, add all the primitive logic gates + declare_logic(arch, scope); + // Build a comment to add to the entity/architecture std::ostringstream ss; ss << "Generated from Verilog module " << ivl_scope_tname(scope); diff --git a/tgt-vhdl/vhdl_syntax.cc b/tgt-vhdl/vhdl_syntax.cc index a4841f762..99ec94d5b 100644 --- a/tgt-vhdl/vhdl_syntax.cc +++ b/tgt-vhdl/vhdl_syntax.cc @@ -315,7 +315,7 @@ void vhdl_signal_decl::emit(std::ofstream &of, int level) const vhdl_expr::~vhdl_expr() { - if (type != NULL) + if (type_ != NULL) delete type_; }