-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maciej Kurc <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (C) 2021 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 [3:0] i, output [3:0] o); | ||
|
||
wire i0_wire, i1_wire, i2_wire, i3_wire; | ||
wire o0_wire, o1_wire, o2_wire, o3_wire; | ||
|
||
IB ib_0(.I(i0_wire), .P(i[0])); | ||
IB ib_1(.I(i1_wire), .P(i[1])); | ||
IB ib_2(.I(i2_wire), .P(i[2])); | ||
IB ib_3(.I(i3_wire), .P(i[3])); | ||
|
||
OB ob_0(.O(o0_wire), .P(o[0])); | ||
OB ob_1(.O(o1_wire), .P(o[1])); | ||
OB ob_2(.O(o2_wire), .P(o[2])); | ||
OB ob_3(.O(o3_wire), .P(o[3])); | ||
|
||
// "Free" flip-flops. In the testarch with no FFMUX they require LUT-thrus | ||
DFF ff_0(.D(i0_wire), .C(1'b1), .R(1'b0), .Q(o0_wire)); | ||
DFF ff_1(.D(i1_wire), .C(1'b1), .R(1'b0), .Q(o1_wire)); | ||
DFF ff_2(.D(i2_wire), .C(1'b1), .R(1'b0), .Q(o2_wire)); | ||
DFF ff_3(.D(i3_wire), .C(1'b1), .R(1'b0), .Q(o3_wire)); | ||
|
||
endmodule |