verilator/test_regress/t/t_dfg_inline_forced.v
Geza Lore 25f5db4b5f
DFG: Allow inlining of variabels driven from forced vars (#5259)
Not sure why this was disabled before, but it seems legal to me to
change

'forced A' -> 'B' -> 'C'

into

'forced A' -> 'B',
'forced A' -> 'C'

Fixes #5249
2024-07-13 12:35:09 +01:00

25 lines
495 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module top(input wire clk);
logic [1:0][31:0] i;
logic o;
always @(posedge clk) begin
force i = 64'hFFFFFFFF_FFFFFFFF;
end
sub sub_i(.i(i), .o(o));
endmodule
module sub (
input logic [63:0] i,
output logic o
);
assign o = |i;
endmodule