Gowin. Add the DCS primitive

Not so much adding the primitive itself, but only its DCS_MODE
parameter, without which an error occurs.

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
YRabbit 2024-07-11 21:39:44 +10:00
parent b08688f711
commit 19bbdd8800
2 changed files with 11 additions and 6 deletions

View File

@ -1901,3 +1901,14 @@ output OSCOUT;
parameter FREQ_DIV = 100; parameter FREQ_DIV = 100;
parameter REGULATOR_EN = 1'b0; parameter REGULATOR_EN = 1'b0;
endmodule endmodule
(* blackbox *)
module DCS (CLK0, CLK1, CLK2, CLK3, CLKSEL, SELFORCE, CLKOUT);
input CLK0, CLK1, CLK2, CLK3, SELFORCE;
input [3:0] CLKSEL;
output CLKOUT;
parameter DCS_MODE = "RISING";
endmodule

View File

@ -1564,12 +1564,6 @@ parameter IDLE = 4'd0,
RD_S2 = 4'd12; RD_S2 = 4'd12;
endmodule endmodule
module DCS (...);
input CLK0, CLK1, CLK2, CLK3, SELFORCE;
input [3:0] CLKSEL;
output CLKOUT;
endmodule
module DQCE (...); module DQCE (...);
input CLKIN; input CLKIN;
input CE; input CE;