mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
016e630ecf
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
23 lines
464 B
Systemverilog
23 lines
464 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
// any use, without warranty, 2023 by Antmicro Ltd.
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t (
|
|
input clk,
|
|
input [7:0] d,
|
|
input [2:0] a,
|
|
output [7:0] q
|
|
);
|
|
always_ff @(posedge clk) tick(a);
|
|
|
|
logic [7:0] d_ = d;
|
|
logic [7:0] q_;
|
|
assign q = q_;
|
|
|
|
task automatic tick(logic [2:0] a);
|
|
q_[a] <= d_[a];
|
|
endtask
|
|
endmodule
|