Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dalance committed Sep 11, 2024
1 parent 3205f6c commit f5fe17b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playground/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,17 @@ 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 ,
i_sel : input logic ,
i_data: input logic<ParamA> [2], // `[]` means unpacked array
o_data: output logic<ParamA> , // `<>` 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<ParamA>;
Expand Down

0 comments on commit f5fe17b

Please sign in to comment.