From d1e7e325b794123bd666ffd0e6d646dbc7ce676a Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Mon, 14 Jul 2008 21:34:48 +0100 Subject: [PATCH] Remove redundant edge_detector function --- tgt-vhdl/stmt.cc | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tgt-vhdl/stmt.cc b/tgt-vhdl/stmt.cc index c0d1cf631..6025d60f8 100644 --- a/tgt-vhdl/stmt.cc +++ b/tgt-vhdl/stmt.cc @@ -137,7 +137,7 @@ static vhdl_expr *translate_assign_rhs(ivl_signal_t sig, vhdl_scope *scope, static vhdl_var_ref *make_assign_lhs(ivl_signal_t sig, vhdl_scope *scope, vhdl_expr *base, int lval_width) { - std::string signame(get_renamed_signal(sig)); + string signame(get_renamed_signal(sig)); vhdl_decl *decl = scope->get_decl(signame); vhdl_type *ltype = new vhdl_type(*decl->get_type()); @@ -373,22 +373,6 @@ static int draw_delay(vhdl_procedural *proc, stmt_container *container, return 0; } -/* - * Make edge detectors from the signals in `nexus' and add them - * to the expression `test'. Also adds the signals to the process - * sensitivity list. Type should be one of `rising_edge' or - * `falling_edge'. - */ -static void edge_detector(ivl_nexus_t nexus, vhdl_process *proc, - vhdl_binop_expr *test, const char *type) -{ - vhdl_var_ref *ref = nexus_to_var_ref(proc->get_scope()->get_parent(), nexus); - vhdl_fcall *detect = new vhdl_fcall(type, vhdl_type::boolean()); - detect->add_expr(ref); - test->add_expr(detect); - proc->add_sensitivity(ref->get_name().c_str()); -} - /* * A wait statement waits for a level change on a @(..) list of * signals.