-
Notifications
You must be signed in to change notification settings - Fork 2
/
IOBUF.v
28 lines (26 loc) · 928 Bytes
/
IOBUF.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module io_buff #(
parameter DRIVE = 12, // Specify the output drive strength
parameter IBUF_LOW_PWR = "TRUE", // Low Power - "TRUE", High Perforrmance = "FALSE"
parameter IOSTANDARD = "DEFAULT", // Specify the I/O standard
parameter SLEW = "SLOW"// Specify the output slew rate
)(
output O,
inout IO,
input I,
input T
);
// IOBUF: Single-ended Bi-directional Buffer
// All devices
// Xilinx HDL Libraries Guide, version 2012.2
IOBUF #(
.DRIVE(DRIVE), // Specify the output drive strength
.IBUF_LOW_PWR(IBUF_LOW_PWR), // Low Power - "TRUE", High Perforrmance = "FALSE"
.IOSTANDARD(IOSTANDARD), // Specify the I/O standard
.SLEW(SLEW) // Specify the output slew rate
) IOBUF_inst (
.O(O), // Buffer output
.IO(IO), // Buffer inout port (connect directly to top-level port)
.I(I), // Buffer input
.T(T) // 3-state enable input, high=input, low=output
);
endmodule