File tree Expand file tree Collapse file tree 1 file changed +22
-21
lines changed Expand file tree Collapse file tree 1 file changed +22
-21
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ module top (
1010 tmds_clk_p,
1111 tmds_d_n,
1212 tmds_d_p,
13- rf_in_n,
14- rf_in_p
13+ rf_in_n,
14+ rf_in_p
1515);
1616 input sys_clk;
1717 input sys_resetn;
1818 output wire tmds_clk_n;
1919 output wire tmds_clk_p;
2020 output wire [2 :0 ] tmds_d_n;
2121 output wire [2 :0 ] tmds_d_p;
22- input wire rf_in_n;
23- input wire rf_in_p;
22+ input wire rf_in_n;
23+ input wire rf_in_p;
2424
2525 wire [2 :0 ] tmds;
2626 wire clk_pixel;
@@ -29,9 +29,9 @@ module top (
2929
3030 wire clk_data;
3131 wire clk_data_div;
32- wire rf_in_1bit;
33- wire rf_in_1bit_q0;
34- wire rf_in_1bit_q1;
32+ wire rf_in_1bit;
33+ wire rf_in_1bit_q0;
34+ wire rf_in_1bit_q1;
3535 wire data_pll_lock;
3636
3737 // https://juj.github.io/gowin_fpga_code_generators/pll_calculator.html
@@ -177,24 +177,25 @@ module top (
177177 .fifo_read_en(fifo_rd_en_i),
178178 .data_in(fifo_out)
179179 );
180-
181- assign write_enable = 1'b1 ;
180+
181+ assign write_enable = 1'b1 ;
182182
183183 always @(posedge clk_data) begin
184184 counter <= counter + 1'b1 ;
185- if (counter == 0 ) begin
186- accumulator <= rf_in_1bit;
187- fifo_in <= accumulator;
188- end else begin
189- accumulator <= accumulator + rf_in_1bit_q0 + rf_in_1bit_q1;
190- end
185+ if (counter == 0 ) begin
186+ accumulator <= rf_in_1bit;
187+ fifo_in <= accumulator;
188+ end else begin
189+ accumulator <= accumulator + rf_in_1bit_q0 + rf_in_1bit_q1;
190+ end
191191 end
192- IDDR uut (
193- .Q0(rf_in_1bit_q0),
194- .Q1(rf_in_1bit_q1),
195- .D(rf_in_1bit),
196- .CLK(clk_data)
197- );
192+
193+ IDDR uut (
194+ .Q0(rf_in_1bit_q0),
195+ .Q1(rf_in_1bit_q1),
196+ .D(rf_in_1bit),
197+ .CLK(clk_data)
198+ );
198199 TLVDS_IBUF rf_in (
199200 .I(rf_in_n),
200201 .IB(rf_in_p),
You can’t perform that action at this time.
0 commit comments