diff --git a/playground/src/lib.rs b/playground/src/lib.rs index 33f8deba..91f5923f 100644 --- a/playground/src/lib.rs +++ b/playground/src/lib.rs @@ -172,7 +172,7 @@ mod tests { const SRC: &str = "// module definition module ModuleA #( param ParamA: u32 = 10, - local ParamB: u32 = 10, // trailing comma is allowed + const ParamB: u32 = 10, // trailing comma is allowed ) ( i_clk : input clock , i_rst : input reset , @@ -180,9 +180,9 @@ module ModuleA #( i_data: input logic [2], // `[]` means unpacked array o_data: output logic , // `<>` means packed array ) { - // local parameter declaration + // const parameter declaration // `param` is not allowed in module - local ParamC: u32 = 10; + const ParamC: u32 = 10; // variable declaration var r_data0: logic;