Commit 0947869e authored by Pascal Bos's avatar Pascal Bos

Switched year zero to 2000, instead of 1970. Removed day zero compensation.

parent e5ba1214
Pipeline #3895 failed with stage
in 2 minutes and 6 seconds
......@@ -245,8 +245,8 @@ begin
seconds <= remainders(0)(5 downto 0);
minutes <= remainders(1)(5 downto 0);
hours <= remainders(2)(3 downto 0);
days <= std_logic_vector(unsigned(remainders(3)(10 downto 2)) + 1); --there is no day zero
years <= quotients(3);
days <= std_logic_vector(unsigned(remainders(3)(10 downto 2)));
years <= std_logic_vector(unsigned(quotients(3)-30));
sbs(16 downto 0) <= remainders(4)(16 downto 0);
sbs(17) <= '0';
enable_bcd_conv <= '1';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment