forsyde / forsyde-deep

Other
1 stars 2 forks source link

VHDL backend support for arbitrary function orders in where clauses #20

Open HWoidt opened 8 years ago

HWoidt commented 8 years ago

Issue by HWoidt Saturday Jul 11, 2015 at 13:07 GMT Originally opened as https://gits-15.sys.kth.se/ingo/forsyde-deep/issues/20


Reported by shani...@gmail.com, Jan 19, 2010

To reproduce the problem:

  1. Define a process function which has included functions inside a where clause.
  2. Generate the VHDL code and try to simulate/synthesize the output.

The VHDL backend generates the output sub-functions in the VHDL code in the same order as were defined in the design. This may result to using a function in the VHDL code before defining it. As a workaround, the designer could define the functions in the define-then-use order which is not a common practice in functional programming.