From 9b3cd4f0d81374a04393ef5d524a3c0603c1b27e Mon Sep 17 00:00:00 2001 From: YRabbit Date: Wed, 23 Feb 2022 16:11:47 +1000 Subject: [PATCH] gowin: Add support for true differential output Signed-off-by: YRabbit --- techlibs/gowin/cells_sim.v | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/techlibs/gowin/cells_sim.v b/techlibs/gowin/cells_sim.v index cc2ad3df5..3f5340b11 100644 --- a/techlibs/gowin/cells_sim.v +++ b/techlibs/gowin/cells_sim.v @@ -570,12 +570,14 @@ module OBUF(output O, input I); assign O = I; endmodule +(* abc9_box *) module TBUF (O, I, OEN); input I, OEN; output O; assign O = OEN ? 1'bz : I; endmodule +(* abc9_box *) module IOBUF (O, IO, I, OEN); input I,OEN; output O; @@ -584,6 +586,15 @@ module IOBUF (O, IO, I, OEN); assign I = IO; endmodule +(* abc9_box *) +module TLVDS_OBUF (I, O, OB); + input I; + output O; + output OB; + assign O = I; + assign OB = ~I; +endmodule + module GSR (input GSRI); wire GSRO = GSRI; endmodule -- 2.30.2