gatemate: Ensure compatibility of LVDS ports with VHDL

This commit is contained in:
Patrick Urban 2023-02-14 07:51:31 +01:00 committed by myrtle
parent e0bc25f1af
commit 4cb27b1a3a
1 changed files with 12 additions and 12 deletions

View File

@ -114,10 +114,10 @@ module CC_LVDS_IBUF #(
parameter [0:0] FF_IBF = 1'bx parameter [0:0] FF_IBF = 1'bx
)( )(
(* iopad_external_pin *) (* iopad_external_pin *)
input IP, IN, input I_P, I_N,
output Y output Y
); );
assign Y = IP; assign Y = I_P;
endmodule endmodule
@ -133,10 +133,10 @@ module CC_LVDS_OBUF #(
)( )(
input A, input A,
(* iopad_external_pin *) (* iopad_external_pin *)
output OP, ON output O_P, O_N
); );
assign OP = A; assign O_P = A;
assign ON = ~A; assign O_N = ~A;
endmodule endmodule
@ -152,10 +152,10 @@ module CC_LVDS_TOBUF #(
)( )(
input A, T, input A, T,
(* iopad_external_pin *) (* iopad_external_pin *)
output OP, ON output O_P, O_N
); );
assign OP = T ? 1'bz : A; assign O_P = T ? 1'bz : A;
assign ON = T ? 1'bz : ~A; assign O_N = T ? 1'bz : ~A;
endmodule endmodule
@ -174,12 +174,12 @@ module CC_LVDS_IOBUF #(
)( )(
input A, T, input A, T,
(* iopad_external_pin *) (* iopad_external_pin *)
inout IOP, ION, inout IO_P, IO_N,
output Y output Y
); );
assign IOP = T ? 1'bz : A; assign IO_P = T ? 1'bz : A;
assign ION = T ? 1'bz : ~A; assign IO_N = T ? 1'bz : ~A;
assign Y = IOP; assign Y = IO_P;
endmodule endmodule