From bc8704e47d3e410b76fd4c80e2a02a1b1f93d275 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 22 Jun 2011 17:33:21 -0700 Subject: [PATCH] Translate a BUFT device correctly in VHDL back end When the BUFT device was added to the compiler nothing was done to support it in the VHDL translator. This patch rectifies that oversight. --- tgt-vhdl/logic.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgt-vhdl/logic.cc b/tgt-vhdl/logic.cc index 4efe3cc33..f6d03c373 100644 --- a/tgt-vhdl/logic.cc +++ b/tgt-vhdl/logic.cc @@ -1,7 +1,7 @@ /* * VHDL code generation for logic devices. * - * Copyright (C) 2008-2009 Nick Gasson (nick@nickg.me.uk) + * Copyright (C) 2008-2011 Nick Gasson (nick@nickg.me.uk) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -247,6 +247,7 @@ static vhdl_expr *translate_logic_inputs(vhdl_scope *scope, ivl_net_logic_t log) case IVL_LO_XNOR: return inputs_to_expr(scope, VHDL_BINOP_XNOR, log); case IVL_LO_BUF: + case IVL_LO_BUFT: case IVL_LO_BUFZ: return nexus_to_var_ref(scope, ivl_logic_pin(log, 1)); case IVL_LO_PULLUP: