blob: 617797b651f7bf3e3f4c869cc50699bc706de64f [file] [log] [blame]
// Copyright (C) 2019-2022 The SymbiFlow Authors
//
// Use of this source code is governed by a ISC-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/ISC
//
// SPDX-License-Identifier: ISC
module top (
input wire clk,
output wire [3:0] led,
inout wire io
);
reg [3:0] r;
initial r <= 0;
always @(posedge clk) r <= r + io;
assign led = {r[0], r[1], r[2], r[3]};
assign io = r[0] ? 1 : 1'bz;
endmodule