From 19b7633aca6335bfdf79ab1fd71f99060f6e04ca Mon Sep 17 00:00:00 2001 From: YRabbit Date: Tue, 15 Mar 2022 07:41:30 +1000 Subject: [PATCH] gowin: add support for Double Data Rate primitives Signed-off-by: YRabbit --- techlibs/gowin/cells_sim.v | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/techlibs/gowin/cells_sim.v b/techlibs/gowin/cells_sim.v index b07ee6924..64b76139c 100644 --- a/techlibs/gowin/cells_sim.v +++ b/techlibs/gowin/cells_sim.v @@ -590,6 +590,31 @@ module TLVDS_OBUF (I, O, OB); assign OB = ~I; endmodule +(* blackbox *) +module ODDR(D0, D1, TX, CLK, Q0, Q1); + input D0; + input D1; + input TX; + input CLK; + output Q0; + output Q1; + parameter TXCLK_POL = 0; + parameter INIT = 0; +endmodule + +(* blackbox *) +module ODDRC(D0, D1, CLEAR, TX, CLK, Q0, Q1); + input D0; + input D1; + input CLEAR; + input TX; + input CLK; + output Q0; + output Q1; + parameter TXCLK_POL = 0; + parameter INIT = 0; +endmodule + module GSR (input GSRI); wire GSRO = GSRI; endmodule -- 2.30.2