NI Circuit Design Community Blog

Community Browser
Labels
cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Sources

GarretF
NI Employee (retired)

It can be useful to supply a digital stimulus when testing digital circuits, particularly combinational logic. You also might want to toggle the stimulus during simulation, rather than running multiple interactive simulations with different combinations of input. Before version 11.0, you could achieve this using a combination of switches and constant sources.

comb_logic_old.png

Workable, but definitely cumbersome, and it had the side effect that the inputs to the logic were analog. Version 11.0 introduced a new much more succinct way of expressing the same input: the Interactive Digital Constant. You can now express the same logic as:

comb_logic_new.png

Clicking the source toggles between high and low stimulus, replacing the need for additional switches. Not only is it more expressive and easier to read, the nets inputs to the logic are all digital, which can improve simulation speed.

This new interactive digital constant one of 3 new digital sources that you can find in the Select a Component dialog at Sources > DIGITAL_SOURCES.

Garret
Senior Software Developer
National Instruments
Circuit Design Community and Blog

If someone helped you, let them know. Mark as solved or give a kudo. 🙂