2006-08-26 13:35:28 +02:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2003 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
module t (
|
|
|
|
|
input clk
|
|
|
|
|
);
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
reg [43:0] mi;
|
|
|
|
|
reg sel;
|
|
|
|
|
reg [3:0] sel2;
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
always @(posedge clk) begin
|
|
|
|
|
mi = 44'h123;
|
|
|
|
|
sel = mi[44];
|
|
|
|
|
sel2 = mi[44:41];
|
|
|
|
|
$write("Bad select %x %x\n", sel, sel2);
|
|
|
|
|
end
|
2006-08-26 13:35:28 +02:00
|
|
|
endmodule
|