2018-11-02 00:03:52 +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
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2018-11-02 00:03:52 +01:00
|
|
|
|
|
|
|
|
// bug1364
|
|
|
|
|
|
2026-03-03 13:21:24 +01:00
|
|
|
module t ( /*AUTOARG*/
|
|
|
|
|
// Inputs
|
|
|
|
|
clk,
|
|
|
|
|
res
|
|
|
|
|
);
|
|
|
|
|
input clk;
|
|
|
|
|
input res;
|
2018-11-02 00:03:52 +01:00
|
|
|
|
2026-03-03 13:21:24 +01:00
|
|
|
typedef struct packed {logic [3:0] port_num;} info_t;
|
2018-11-02 00:03:52 +01:00
|
|
|
|
2026-03-03 13:21:24 +01:00
|
|
|
info_t myinfo;
|
2018-11-02 00:03:52 +01:00
|
|
|
|
2026-03-03 13:21:24 +01:00
|
|
|
always_comb myinfo = '{default: '0, valids: '1};
|
2018-11-02 00:03:52 +01:00
|
|
|
|
|
|
|
|
endmodule
|