2022-12-30 02:18:28 +01: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: 2018 Wilson Snyder
|
2022-12-30 02:18:28 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
// bug1364
|
|
|
|
|
|
|
|
|
|
module t (/*AUTOARG*/
|
|
|
|
|
// Inputs
|
|
|
|
|
clk, res
|
|
|
|
|
);
|
|
|
|
|
input clk;
|
|
|
|
|
input res;
|
|
|
|
|
|
|
|
|
|
typedef struct packed {
|
|
|
|
|
logic [3:0] port_num;
|
|
|
|
|
} info_t;
|
|
|
|
|
|
|
|
|
|
info_t myinfo;
|
|
|
|
|
always_comb
|
|
|
|
|
myinfo = '{default: '0,
|
|
|
|
|
default: '1}; // Bad
|
|
|
|
|
|
|
|
|
|
endmodule
|