[HDL] Add HDL codes for embedded I/Os
This commit is contained in:
parent
55b77ac6cb
commit
2f237a6240
|
@ -18,3 +18,23 @@ module GPIO (
|
||||||
//----- when direction is disabled, the signal is propagated from data out to pad
|
//----- when direction is disabled, the signal is propagated from data out to pad
|
||||||
assign PAD = DIR ? 1'bz : A;
|
assign PAD = DIR ? 1'bz : A;
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
//-----------------------------------------------------
|
||||||
|
// Function : A minimum input pad
|
||||||
|
//-----------------------------------------------------
|
||||||
|
module GPIN (
|
||||||
|
input A, // Data output
|
||||||
|
output Y // Data input
|
||||||
|
);
|
||||||
|
assign Y = A;
|
||||||
|
endmodule
|
||||||
|
|
||||||
|
//-----------------------------------------------------
|
||||||
|
// Function : A minimum output pad
|
||||||
|
//-----------------------------------------------------
|
||||||
|
module GPOUT (
|
||||||
|
input A, // Data output
|
||||||
|
output Y // Data input
|
||||||
|
);
|
||||||
|
assign Y = A;
|
||||||
|
endmodule
|
||||||
|
|
Loading…
Reference in New Issue