Write a program (pseudocode) that simulates a Rising-Edge-Triggered D Flip-Flop

Thread Starter

wad11656

Joined Nov 12, 2017
5
I need to write a program to simulate a Rising-Edge-Triggered D Flip-Flop.

I'd appreciate if I could just see some pseudocode written out to help me get started.

I watched this video:

and understand that D acts as the data input, and Q is the most relevant output.
It seems the circuit can only be updated at the "Rising-Edge" of the clock (when the 'clock' (CLK) value is changing to '1')

[/url][/IMG]
 

WBahn

Joined Mar 31, 2012
30,062
A more basic question is how do you plan to simulate a feedback logic circuit to begin with?

Once you have that done, then it should be a pretty straightforward task to simulate this circuit since you have the schematic for it.
 
Top