From 6243736481ad6f0ea55ae391104adba7c9dabd0f Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Mon, 14 Jul 2008 12:04:20 +0100 Subject: [PATCH] Pull-up/pull-down logic devices --- tgt-vhdl/scope.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tgt-vhdl/scope.cc b/tgt-vhdl/scope.cc index 11a7c849c..8a6669c87 100644 --- a/tgt-vhdl/scope.cc +++ b/tgt-vhdl/scope.cc @@ -157,6 +157,10 @@ static vhdl_expr *translate_logic(vhdl_scope *scope, ivl_net_logic_t log) case IVL_LO_BUF: case IVL_LO_BUFZ: return nexus_to_expr(scope, ivl_logic_pin(log, 1)); + case IVL_LO_PULLUP: + return new vhdl_const_bit('1'); + case IVL_LO_PULLDOWN: + return new vhdl_const_bit('0'); default: error("Don't know how to translate logic type = %d", ivl_logic_type(log));