I am modeling Digital Circuits using ICs in a software. I have worked with flip flops and counters, but I don't remember it well. How do I model undefined or initial value of flip flop (SR or JK etc.)? I have three options
- '0' state for all uninitialized nodes
- assign random value '0' or '1' to the new node
- generate error message, & ask user to clear or preset the flip flop
Also consider a JK flip flop, if the user input is '0' & '0', the output is 'Q' & 'Q bar'. What value do I assign in this case? '0' & '1'? This is the initial case, i.e the circuit has been made & the console just powered up.
Please share your experience.