D flipflop implementation in C++
-
Hi, I have implement a D-Flipflop in C++, I.e. 'D' as a input and 'Q' as a output with 'clk' as a conrol input. When clk = '1' and D = '1/0' then Q = D; How to realize clock in C++. It should be of 50% duty cycle using the system frequency. is there any function to use the system clock in program.
-
Hi, I have implement a D-Flipflop in C++, I.e. 'D' as a input and 'Q' as a output with 'clk' as a conrol input. When clk = '1' and D = '1/0' then Q = D; How to realize clock in C++. It should be of 50% duty cycle using the system frequency. is there any function to use the system clock in program.
-
See http://msdn.microsoft.com/en-us/library/1f4c8f33(v=vs.80).aspx[^].
Use the best guess
-
I don't need a timing info from the system. It should provide the the system clock as a input to my program. How to clock in C++/C for the function of digital blocks.
I don't think that you can get the system clock directly, you need to use one of the time functions provided by the OS.
Manoj7390 wrote:
How to clock in C++/C for the function of digital blocks.
I'm not sure what you mean by this question.
Use the best guess
-
Hi, I have implement a D-Flipflop in C++, I.e. 'D' as a input and 'Q' as a output with 'clk' as a conrol input. When clk = '1' and D = '1/0' then Q = D; How to realize clock in C++. It should be of 50% duty cycle using the system frequency. is there any function to use the system clock in program.
-
Do you mean simulate the flip flop? That is provide the clock (and other signals) by means of an array?
Veni, vidi, vici.