Skip to content

Commit

Permalink
Add inout test case
Browse files Browse the repository at this point in the history
  • Loading branch information
chungshien-chai committed Aug 27, 2024
1 parent 79cd9d1 commit 913caee
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions EDA-2763/inout/top.sdc
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
17 changes: 17 additions & 0 deletions EDA-2763/inout/top.v
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

0 comments on commit 913caee

Please sign in to comment.