Debian Codegraph @

examples/gw5a/dcs.v

raw
1 module top (input wire clk_50m, input wire rst, input [3:0]btn, output wire clkout);
2
3 wire clkout0;
4 wire clkout1;
5 wire clkout2;
6 wire clkout3;
7 wire clkout4;
8 wire clkout5;
9 wire clkout6;
10
11 DCS dcs_inst(
12 .CLKOUT(clkout),
13 .CLKIN0(clkout0),
14 .CLKIN1(clkout1),
15 .CLKIN2(clkout2),
16 .CLKIN3(clkout3),
17 .CLKSEL(~btn),
18 .SELFORCE(1'b1)
19 );
20 defparam dcs_inst.DCS_MODE="RISING";
21
22 wire clkfbout;
23 wire lock;
24 wire [7:0] mdrdo;
25 wire gw_gnd;
26
27 assign gw_gnd = 1'b0;
28 PLLA PLLA_inst (
29 .LOCK(lock),
30 .CLKOUT0(clkout0),
31 .CLKOUT1(clkout1),
32 .CLKOUT2(clkout2),
33 .CLKOUT3(clkout3),
34 .CLKOUT4(clkout4),
35 .CLKOUT5(clkout5),
36 .CLKOUT6(clkout6),
37 .CLKFBOUT(clkfbout),
38 .MDRDO(mdrdo),
39 .CLKIN(clk_50m),
40 .CLKFB(gw_gnd),
41 .RESET(rst),
42 .PLLPWD(gw_gnd),
43 .RESET_I(gw_gnd),
44 .RESET_O(gw_gnd),
45 .PSSEL({gw_gnd,gw_gnd,gw_gnd}),
46 .PSDIR(gw_gnd),
47 .PSPULSE(gw_gnd),
48 .SSCPOL(gw_gnd),
49 .SSCON(gw_gnd),
50 .SSCMDSEL({gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd}),
51 .SSCMDSEL_FRAC({gw_gnd,gw_gnd,gw_gnd}),
52 .MDCLK(gw_gnd),
53 .MDOPC({gw_gnd,gw_gnd}),
54 .MDAINC(gw_gnd),
55 .MDWDI({gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd})
56 );
57
58 defparam PLLA_inst.FCLKIN = "50";
59 defparam PLLA_inst.IDIV_SEL = 1;
60 defparam PLLA_inst.FBDIV_SEL = 1;
61 defparam PLLA_inst.ODIV0_SEL = 36;
62 defparam PLLA_inst.ODIV1_SEL = 41;
63 defparam PLLA_inst.ODIV2_SEL = 45;
64 defparam PLLA_inst.ODIV3_SEL = 60;
65 defparam PLLA_inst.ODIV4_SEL = 90;
66 defparam PLLA_inst.ODIV5_SEL = 100;
67 defparam PLLA_inst.ODIV6_SEL = 117;
68 defparam PLLA_inst.MDIV_SEL = 18;
69 defparam PLLA_inst.MDIV_FRAC_SEL = 0;
70 defparam PLLA_inst.ODIV0_FRAC_SEL = 0;
71 defparam PLLA_inst.CLKOUT0_EN = "TRUE";
72 defparam PLLA_inst.CLKOUT1_EN = "TRUE";
73 defparam PLLA_inst.CLKOUT2_EN = "TRUE";
74 defparam PLLA_inst.CLKOUT3_EN = "TRUE";
75 defparam PLLA_inst.CLKOUT4_EN = "FALSE";
76 defparam PLLA_inst.CLKOUT5_EN = "FALSE";
77 defparam PLLA_inst.CLKOUT6_EN = "FALSE";
78 defparam PLLA_inst.CLKFB_SEL = "INTERNAL";
79 defparam PLLA_inst.CLKOUT0_DT_DIR = 1'b1;
80 defparam PLLA_inst.CLKOUT1_DT_DIR = 1'b1;
81 defparam PLLA_inst.CLKOUT2_DT_DIR = 1'b1;
82 defparam PLLA_inst.CLKOUT3_DT_DIR = 1'b1;
83 defparam PLLA_inst.CLKOUT0_DT_STEP = 0;
84 defparam PLLA_inst.CLKOUT1_DT_STEP = 0;
85 defparam PLLA_inst.CLKOUT2_DT_STEP = 0;
86 defparam PLLA_inst.CLKOUT3_DT_STEP = 0;
87 defparam PLLA_inst.CLK0_IN_SEL = 1'b0;
88 defparam PLLA_inst.CLK0_OUT_SEL = 1'b0;
89 defparam PLLA_inst.CLK1_IN_SEL = 1'b0;
90 defparam PLLA_inst.CLK1_OUT_SEL = 1'b0;
91 defparam PLLA_inst.CLK2_IN_SEL = 1'b0;
92 defparam PLLA_inst.CLK2_OUT_SEL = 1'b0;
93 defparam PLLA_inst.CLK3_IN_SEL = 1'b0;
94 defparam PLLA_inst.CLK3_OUT_SEL = 1'b0;
95 defparam PLLA_inst.CLK4_IN_SEL = 2'b00;
96 defparam PLLA_inst.CLK4_OUT_SEL = 1'b0;
97 defparam PLLA_inst.CLK5_IN_SEL = 1'b0;
98 defparam PLLA_inst.CLK5_OUT_SEL = 1'b0;
99 defparam PLLA_inst.CLK6_IN_SEL = 1'b0;
100 defparam PLLA_inst.CLK6_OUT_SEL = 1'b0;
101 defparam PLLA_inst.DYN_DPA_EN = "FALSE";
102 defparam PLLA_inst.CLKOUT0_PE_COARSE = 0;
103 defparam PLLA_inst.CLKOUT0_PE_FINE = 0;
104 defparam PLLA_inst.CLKOUT1_PE_COARSE = 0;
105 defparam PLLA_inst.CLKOUT1_PE_FINE = 0;
106 defparam PLLA_inst.CLKOUT2_PE_COARSE = 0;
107 defparam PLLA_inst.CLKOUT2_PE_FINE = 0;
108 defparam PLLA_inst.CLKOUT3_PE_COARSE = 0;
109 defparam PLLA_inst.CLKOUT3_PE_FINE = 0;
110 defparam PLLA_inst.CLKOUT4_PE_COARSE = 0;
111 defparam PLLA_inst.CLKOUT4_PE_FINE = 0;
112 defparam PLLA_inst.CLKOUT5_PE_COARSE = 0;
113 defparam PLLA_inst.CLKOUT5_PE_FINE = 0;
114 defparam PLLA_inst.CLKOUT6_PE_COARSE = 0;
115 defparam PLLA_inst.CLKOUT6_PE_FINE = 0;
116 defparam PLLA_inst.DYN_PE0_SEL = "FALSE";
117 defparam PLLA_inst.DYN_PE1_SEL = "FALSE";
118 defparam PLLA_inst.DYN_PE2_SEL = "FALSE";
119 defparam PLLA_inst.DYN_PE3_SEL = "FALSE";
120 defparam PLLA_inst.DYN_PE4_SEL = "FALSE";
121 defparam PLLA_inst.DYN_PE5_SEL = "FALSE";
122 defparam PLLA_inst.DYN_PE6_SEL = "FALSE";
123 defparam PLLA_inst.DE0_EN = "FALSE";
124 defparam PLLA_inst.DE1_EN = "FALSE";
125 defparam PLLA_inst.DE2_EN = "FALSE";
126 defparam PLLA_inst.DE3_EN = "FALSE";
127 defparam PLLA_inst.DE4_EN = "FALSE";
128 defparam PLLA_inst.DE5_EN = "FALSE";
129 defparam PLLA_inst.DE6_EN = "FALSE";
130 defparam PLLA_inst.RESET_I_EN = "FALSE";
131 defparam PLLA_inst.RESET_O_EN = "FALSE";
132 defparam PLLA_inst.ICP_SEL = 6'bXXXXXX;
133 defparam PLLA_inst.LPF_RES = 3'bXXX;
134 defparam PLLA_inst.LPF_CAP = 2'b00;
135 defparam PLLA_inst.SSC_EN = "FALSE";
136
137 endmodule //Gowin_PLL