blob: 918ba6ffe8bb1e410cac93532e3eb7bf6db756d6 [file] [log] [blame]
// DESCRIPTION: Verilator: Test of select from constant
//
// This tests issue 508, bit select of constant fails
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2012 by Jeremy Bennett.
module t (/*AUTOARG*/
// Inputs
clk
);
input clk;
// Note that if we declare "wire [0:0] b", this works just fine.
wire a;
wire b;
assign b = 1'b0;
assign a = b[0]; // IEEE illegal can't extract scalar
endmodule