2024-03-21 23:26:42 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
|
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
|
// any use, without warranty, 2022 by Geza Lore.
|
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
module t;
|
|
|
|
|
|
|
|
|
|
logic [30:0] packed_data;
|
2025-04-09 12:37:52 +02:00
|
|
|
logic [60:0] packed_data2;
|
2024-03-21 23:26:42 +01:00
|
|
|
logic [7:0] stream[4];
|
|
|
|
|
|
|
|
|
|
initial begin
|
|
|
|
|
packed_data = 31'h12345678;
|
|
|
|
|
{>>{stream}} = packed_data;
|
|
|
|
|
packed_data = {>>{stream}};
|
2025-04-09 12:37:52 +02:00
|
|
|
stream = {>>{packed_data2}};
|
|
|
|
|
{>>{packed_data2}} = stream;
|
2024-03-21 23:26:42 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
endmodule
|