2007-01-02 22:06:40 +00:00
|
|
|
// $Id$
|
2006-08-26 11:35:28 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
|
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
2007-01-02 22:06:40 +00:00
|
|
|
// without warranty, 2003-2007 by Wilson Snyder.
|
2006-08-26 11:35:28 +00:00
|
|
|
|
|
|
|
module t (clk);
|
|
|
|
input clk;
|
|
|
|
|
|
|
|
reg [43:0] mi;
|
|
|
|
reg [3:0] sel2;
|
|
|
|
|
|
|
|
always @ (posedge clk) begin
|
|
|
|
mi = 44'h123;
|
|
|
|
sel2 = mi[1:4];
|
|
|
|
$write ("Bad select %x\n", sel2);
|
|
|
|
end
|
|
|
|
endmodule
|