from BinPy.tools import Clock from BinPy.Sequential.counters import NBitRippleCounter from BinPy.Gates import Connector from BinPy.tools.oscilloscope import Oscilloscope # In[2]: # Initialize a toggle connectr for inpput in TFlipFlop toggle = Connector(1) # Initializing the Clock # A clock of 10 hertz frequency clock = Clock(1, 10) clock.start() clk_conn = clock.A # Initialize enable enable = Connector(1) # In[3]: # Setting No of Bits to 4 # Clock frequency is 10 Hz # Initializing Ripple Counter with 4 bits and clock_conn
from BinPy.tools.oscilloscope import Oscilloscope # In[28]: # Initialize a toggle connectr for inpput in TFlipFlop toggle = Connector(1) # In[29]: # Initializing the Clock # A clock of 5 hertz frequency clock = Clock(1, 5) clock.start() clk_conn = clock.A # In[30]: # Initialize enable enable = Connector(1) # In[31]: