Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20644 Discussions

operational hours for starting a process

Altera_Forum
Honored Contributor II
963 Views

hi there guys, 

 

i need help with my VHDL project, 

 

i would like to define operational hours for a process to begin. 

 

 

the insertion of the hours will be entered through a GUI i'm building with WPF. 

 

{for example, i'm entering 7:00 to 19:00 in a GUI i've built in c#, and i would like my project to check wether the current hour is whitin this range; if the answer is yes - start some process.} 

 

how can this be achived? any helpfull references? 

 

 

 

 

 

 

Thanks ahead. 

 

 

 

 

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
193 Views

To interact with software you need a set of registers that are driven by software and read by fpga. Then you can send any flag to activate any logic.

0 Kudos
Altera_Forum
Honored Contributor II
193 Views

Hi @kaz 

can you ellaborate more on this topic? 

what these registers are  

what are the variables types ill need to declare on my VHDL? 

would other program language will do the work except c/c#? 

what's the best way to build a UI that will interact with the FPGA?
0 Kudos
Altera_Forum
Honored Contributor II
193 Views

 

--- Quote Start ---  

Hi @kaz 

can you ellaborate more on this topic? 

what these registers are  

what are the variables types ill need to declare on my VHDL? 

would other program language will do the work except c/c#? 

what's the best way to build a UI that will interact with the FPGA? 

--- Quote End ---  

 

 

There are different ways to communicate between PC and fpga such as onchip processor, I2C, memory editor... It is a learning curve that takes time. 

The alternative is to ignore the PC and run fpga on a counter that counts time then you can use this counter to activate logic.
0 Kudos
Reply