verilator/test_regress/t/t_math_pow7.v

28 lines
707 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2005 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
`define STRINGIFY(x) `"x`"
// verilog_format: off
`define stop $stop
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0)
// verilog_format: on
module t (/*AUTOARG*/
// Outputs
out_data
);
output [11:0] out_data;
wire [11:0] out_data;
wire [11:0] a;
wire [2:0] b;
assign a = 12'h000 ** { b };
assign b = 3'b0;
assign out_data = a;
endmodule