Can one define compile/synthesis directives like language options per file?

5 views
Skip to first unread message

peter.t...@gmail.com

unread,
May 22, 2021, 4:46:00 AM5/22/21
to Clash - Hardware Description Language
I want clash-inline-limit=100 just in one file that exports a NOINLINE function for synthesis.

Is that possible?

(without the NOINLINE the semantics may be dubious, but it should still be possible practically to turn that on and off per compilation unit, IF at that point in synthesis one still has compilation units as a concept).

Regards

Peter

Christiaan Baaij

unread,
May 22, 2021, 4:55:17 AM5/22/21
to clash-l...@googlegroups.com
No, sadly directives that are set on the command line (such as `-fclash-inline-limit=XYZ`) cannot be set at a per-file (or even per-function) level at this time.
I've raised an "enhancement" issue on the issue tracker: https://github.com/clash-lang/clash-compiler/issues/1827

--
You received this message because you are subscribed to the Google Groups "Clash - Hardware Description Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clash-languag...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clash-language/db1f4d78-7fdc-4fcb-9524-bd106e426d43n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages