-
-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
langLanguage designLanguage design
Description
Currently, backward function definition is not supported because wrong IT is generated for function call with such function.
Function prototype needs to be introduced for ease of generating IR.
module ModuleA (
i_clk: input clock,
) {
var a: logic;
always_ff {
if get_b() {
a = '1;
}
}
let b: logic = '1;
function get_b() -> logic {
return b;
}
}Wrong IR is generated for function call before defining the called function. Due to this, this error is happened.
I disccussed it with @dalance .
Backword function difinition is not supported for now because it is difficult to implement this feautre.
Originally posted by @taichi-ishitani in #2205
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
langLanguage designLanguage design