From f5fe17bcc82e607c9669b37cce51d4ad22e8a4d1 Mon Sep 17 00:00:00 2001 From: dalance Date: Wed, 11 Sep 2024 23:19:38 +0900 Subject: [PATCH] Fix test --- playground/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;