[HDL] Add HDL codes for embedded I/Os

This commit is contained in:
tangxifan 2020-11-02 14:01:27 -07:00
parent 55b77ac6cb
commit 2f237a6240
1 changed files with 20 additions and 0 deletions

View File

@ -18,3 +18,23 @@ module GPIO (
//----- when direction is disabled, the signal is propagated from data out to pad
assign PAD = DIR ? 1'bz : A;
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