Pull-up/pull-down logic devices

This commit is contained in:
Nick Gasson 2008-07-14 12:04:20 +01:00
parent e331e4831b
commit 6243736481
1 changed files with 4 additions and 0 deletions

View File

@ -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));