Beispiel #1
0
 public SingleBitRegister()
 {
     Input  = new Wire();
     Load   = new Wire();
     Output = new Wire();
     mux    = new MuxGate();
     ff     = new DFlipFlopGate();
     mux.ConnectControl(Load);
     mux.ConnectInput1(ff.Output);
     mux.ConnectInput2(Input);
     ff.ConnectInput(mux.Output);
     Output.ConnectInput(ff.Output);
 }
Beispiel #2
0
        public SingleBitRegister()
        {
            Input = new Wire();
            Load  = new Wire();
            //your code here

            Output     = new Wire();
            m_flipFlop = new DFlipFlopGate();
            m_mux      = new MuxGate();
            m_mux.ConnectInput1(m_flipFlop.Output);
            m_mux.ConnectInput2(Input);
            m_mux.ConnectControl(Load);
            m_flipFlop.ConnectInput(m_mux.Output);
            Output.ConnectInput(m_flipFlop.Output);
        }
Beispiel #3
0
        public SingleBitRegister()
        {
            Input = new Wire();
            Load  = new Wire();
            //your code here
            var gFlipFlop = new DFlipFlopGate();
            var gMux      = new MuxGate();

            gMux.ConnectInput1(Input);
            gMux.ConnectControl(Load);
            gMux.ConnectInput2(gFlipFlop.Output);

            gFlipFlop.ConnectInput(gMux.Output);
            Output = gFlipFlop.Output;
        }