URL
https://opencores.org/ocsvn/rtcclock/rtcclock/trunk
[/] [rtcclock/] [trunk/] [rtl/] [rtclight.v] - Diff between revs 8 and 10
Show entire file |
Details |
Blame |
View Log
Rev 8 |
Rev 10 |
Line 70... |
Line 70... |
assign tm_sel = ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_addr[2:0]==3'b001));
|
assign tm_sel = ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_addr[2:0]==3'b001));
|
assign sw_sel = ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_addr[2:0]==3'b010));
|
assign sw_sel = ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_addr[2:0]==3'b010));
|
assign al_sel = ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_addr[2:0]==3'b011));
|
assign al_sel = ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_addr[2:0]==3'b011));
|
assign sp_sel = ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_addr[2:0]==3'b100));
|
assign sp_sel = ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_addr[2:0]==3'b100));
|
|
|
reg [39:0] ck_counter;
|
|
reg ck_carry;
|
reg ck_carry;
|
|
reg [39:0] ck_counter;
|
|
initial ck_carry = 1'b0;
|
|
initial ck_counter = 40'h00;
|
always @(posedge i_clk)
|
always @(posedge i_clk)
|
{ ck_carry, ck_counter } <= ck_counter + { 8'h00, ckspeed };
|
{ ck_carry, ck_counter } <= ck_counter + { 8'h00, ckspeed };
|
|
|
wire ck_pps;
|
wire ck_pps;
|
reg ck_prepps, ck_ppm, ck_pph, ck_ppd;
|
reg ck_prepps, ck_ppm, ck_pph, ck_ppd;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.