2022-11-13 21:33:11 +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;
|
|
|
|
|
|
2025-07-26 22:53:51 +02:00
|
|
|
logic [31:0] packed_data_32;
|
|
|
|
|
byte byte_in [4];
|
|
|
|
|
logic [ 3:0] x = 4'($random());
|
2022-11-13 21:33:11 +01:00
|
|
|
|
2025-07-26 22:53:51 +02:00
|
|
|
initial begin
|
|
|
|
|
packed_data_32 = {<<$random{byte_in}};
|
|
|
|
|
packed_data_32 = {<<x{byte_in}};
|
|
|
|
|
end
|
2022-11-13 21:33:11 +01:00
|
|
|
|
|
|
|
|
endmodule
|