-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79cd9d1
commit 913caee
Showing
2 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set_pin_loc io HP_1_0_0P | ||
|
||
set_pin_loc ioz HP_1_2_1P | ||
|
||
set_pin_loc i HP_1_4_2P | ||
|
||
set_pin_loc o HP_1_6_3P |
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,17 @@ | ||
///////////////////////////////////////// | ||
// Functionality: | ||
// Author: Chung Shien | ||
//////////////////////////////////////// | ||
// `timescale 1ns / 1ps | ||
|
||
module top ( | ||
inout io, | ||
input ioz, | ||
input i, | ||
output o | ||
); | ||
|
||
assign io = ioz ? 1'bz : i; | ||
assign o = ioz ? io : i; | ||
|
||
endmodule |