Exemplo n.º 1
0
        public Tesbernch_Cordic()
        {
            _m_clk = new Clock(ClockPeriod)
            {
                Clk = _clk
            };

            // Instanziierung von Translate

            _translate = new XilinxCordic()
            {
                FunctionalSelection = XilinxCordic.EFunctionalSelection.Translate,
                Clk       = _clk,
                X_In      = _X_IN1,
                Y_In      = _Y_IN1,
                X_Out     = _X_OUT1,
                Phase_Out = _PHASE_OUT1,
            };

            // Instanziierung von SinAndCos

            _SinAndCos = new XilinxCordic()
            {
                FunctionalSelection = XilinxCordic.EFunctionalSelection.SinAndCos,
                Clk      = _clk,
                Phase_In = _PHASE_IN2,
                X_Out    = _X_OUT2,
                Y_Out    = _Y_OUT2,
            };


            // Instanziierung von Rotate

            _rot = new XilinxCordic()
            {
                FunctionalSelection = XilinxCordic.EFunctionalSelection.Rotate,

                Clk       = _clk,
                X_In      = _X_IN,
                Y_In      = _Y_IN,
                Phase_In  = _PHASE_IN,
                X_Out     = _X_OUT,
                Y_Out     = _Y_OUT,
                Phase_Out = _PHASE_OUT,
                //...
            };
        }
Exemplo n.º 2
0
        public Tesbernch_Cordic()
        {
            _m_clk = new Clock(ClockPeriod)
            {
                Clk = _clk
            };

      // Instanziierung von Translate

            _translate = new XilinxCordic()
            {
                FunctionalSelection = XilinxCordic.EFunctionalSelection.Translate,
                Clk = _clk,
                X_In = _X_IN1,
                Y_In = _Y_IN1,               
                X_Out = _X_OUT1,                          
                Phase_Out = _PHASE_OUT1,
            };

       // Instanziierung von SinAndCos

            _SinAndCos = new XilinxCordic()
            {
                FunctionalSelection = XilinxCordic.EFunctionalSelection.SinAndCos,
                Clk = _clk,                
                Phase_In = _PHASE_IN2,           
                X_Out = _X_OUT2,
                Y_Out = _Y_OUT2,
                
            };

            
      // Instanziierung von Rotate

            _rot = new XilinxCordic()
            {
                FunctionalSelection = XilinxCordic.EFunctionalSelection.Rotate,

                Clk = _clk,
                X_In = _X_IN,
                Y_In = _Y_IN,
                Phase_In = _PHASE_IN,
                X_Out = _X_OUT,
                Y_Out = _Y_OUT,
                Phase_Out = _PHASE_OUT,
                //...
            };      
       

        }