From df4a380e42ae18d932be1fa51e0568c0361bc8dc Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Fri, 18 Jul 2008 14:31:12 +0100 Subject: [PATCH] Fix implementation of IVL_LPM_UFUNC Function name was not correct. --- tgt-vhdl/lpm.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgt-vhdl/lpm.cc b/tgt-vhdl/lpm.cc index 4f097b893..0a29d255f 100644 --- a/tgt-vhdl/lpm.cc +++ b/tgt-vhdl/lpm.cc @@ -155,7 +155,8 @@ static vhdl_expr *part_select_pv_lpm_to_expr(vhdl_scope *scope, ivl_lpm_t lpm) static vhdl_expr *ufunc_lpm_to_expr(vhdl_scope *scope, ivl_lpm_t lpm) { - vhdl_fcall *fcall = new vhdl_fcall(ivl_lpm_basename(lpm), NULL); + ivl_scope_t f_scope = ivl_lpm_define(lpm); + vhdl_fcall *fcall = new vhdl_fcall(ivl_scope_basename(f_scope), NULL); for (unsigned i = 0; i < ivl_lpm_size(lpm); i++) { vhdl_var_ref *ref = nexus_to_var_ref(scope, ivl_lpm_data(lpm, i));