RE: [Haskell-cafe] Using FosSyDe to translate haskell to VHDL.

2009-03-11 Thread wanghanyi
, 10 Mar 2009 20:23:57 +0100 From: matth...@stdin.nl To: wanghany...@hotmail.com CC: haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] Using FosSyDe to translate haskell to VHDL. Hi Hany, *Plus2 writeVHDL plus2SysDef *** Exception: VHDL Compilation Error: Untranslatable function

[Haskell-cafe] Using FosSyDe to translate haskell to VHDL.

2009-03-10 Thread wanghanyi
Dear all, I have used ForSyDe to translate a Haskell script to VHDL for a while, and I have one problem by applying where-clause during the translation. I wrote a small function Plus2.hs which is implied as following addTwof :: ProcFun (Int32 - Int32) addTwof = $(newProcFun [d|addTwof ::

Re: [Haskell-cafe] Using FosSyDe to translate haskell to VHDL.

2009-03-10 Thread Matthijs Kooijman
Hi Hany, *Plus2 writeVHDL plus2SysDef *** Exception: VHDL Compilation Error: Untranslatable function: where constructs are not supported in functions: where addOnef_0 = n_1 GHC.Num.+ 1 in process function `addTwof' (created in Plus2) used by process `plus2Proc' belonging to system