Altera_Forum
Honored Contributor
13 years agoGetting the System Time in VHDL
Hello,
Attached below is my VHDL code for a digital clock. Right now the code sets the default time as 12:00:00 AM, as seen from lines 35-38. I was wondering if there was some sort of command in VHDL to get the current time from the computer, just for the first time you run the program onto the board (although if I could do it with a button press, that would be great as well). Or if there is some other way to do so. It looks like I will have to use Nios II, just making sure that I don't have to. Also any advice about the code in general is always welcome. Thanks in advance, Marcin