2020-03-21 16:24:24 +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-02-11 01:08:07 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
module t (
|
|
|
|
|
input clk
|
|
|
|
|
);
|
2018-02-11 01:08:07 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
tri [3:0] w;
|
2018-02-11 01:08:07 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
pullup p0 (w[0]);
|
|
|
|
|
pulldown p1 (w[1]);
|
|
|
|
|
pulldown p2 (w[2]);
|
|
|
|
|
pullup p3 (w[3]);
|
2018-02-11 01:08:07 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
always_ff @(posedge clk) begin
|
|
|
|
|
if (w != 4'b1001) $stop;
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2018-02-11 01:08:07 +01:00
|
|
|
endmodule
|