2021-11-26 16:51:11 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
|
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
|
// any use, without warranty, 2021 by Michael Lefebvre.
|
2023-01-21 02:42:30 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2021-11-26 16:51:11 +01:00
|
|
|
|
2025-09-13 15:28:43 +02:00
|
|
|
module t;
|
2021-11-26 16:51:11 +01:00
|
|
|
|
|
|
|
|
localparam int unsigned A2 [1:0] = '{5,6};
|
|
|
|
|
localparam int unsigned A3 [2:0] = '{4,5,6};
|
|
|
|
|
|
|
|
|
|
// Matching sizes with slicesel are okay.
|
|
|
|
|
localparam int unsigned B22 [1:0] = A2[1:0];
|
|
|
|
|
localparam int unsigned B33 [2:0] = A3[2:0];
|
|
|
|
|
|
2023-09-16 00:12:11 +02:00
|
|
|
// See issue #3186
|
2021-11-26 16:51:11 +01:00
|
|
|
localparam int unsigned B32_B [1:0] = A3[1:0];
|
|
|
|
|
localparam int unsigned B32_T [1:0] = A3[2:1];
|
|
|
|
|
|
|
|
|
|
endmodule
|