From dc283627ed31bc4ea22ae99669ce6bdf3fb95ac5 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 23 Jun 2009 15:07:12 +0200 Subject: [PATCH] Use varToVHDLExpr in mkConcSm. Previously, this used some custom set of functions. Using varToVHDLExpr allows us to support constants for datacons later on. --- VHDL.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/VHDL.hs b/VHDL.hs index b2d5b30..2c20663 100644 --- a/VHDL.hs +++ b/VHDL.hs @@ -298,9 +298,8 @@ mkConcSm (bndr, app@(CoreSyn.App _ _))= do Just (arg_count, builder) -> if length valargs == arg_count then let - sigs = map (bndrToString.varBndr) valargs - sigsNames = map (\signal -> (AST.PrimName (AST.NSimple (mkVHDLExtId signal)))) sigs - func = builder sigsNames + sigs = map (varToVHDLExpr.varBndr) valargs + func = builder sigs src_wform = AST.Wform [AST.WformElem func Nothing] dst_name = AST.NSimple (mkVHDLExtId (bndrToString bndr)) assign = dst_name AST.:<==: (AST.ConWforms [] src_wform Nothing) -- 2.30.2