コード例 #1
0
        public TestHLS_SinCosLUT_Testbench(int xFracWidth, int yFracWidth)
        {
            _xFracWidth = xFracWidth;
            _yFracWidth = yFracWidth;

            _x   = new SLVSignal(2 + xFracWidth);
            _sin = new SLVSignal(2 + yFracWidth);
            _cos = new SLVSignal(2 + yFracWidth);

            _dut = new TestHLS_SinCosLUT(xFracWidth, yFracWidth)
            {
                Clk = _clk,
                X   = _x,
                Sin = _sin,
                Cos = _cos,
                Rdy = _rdy
            };
            _clkGen = new Clock(new Time(10.0, ETimeUnit.ns))
            {
                Clk = _clk
            };
        }
コード例 #2
0
        public TestHLS_SinCosLUT_Testbench(int xFracWidth, int yFracWidth)
        {
            _xFracWidth = xFracWidth;
            _yFracWidth = yFracWidth;

            _x = new SLVSignal(2 + xFracWidth);
            _sin = new SLVSignal(2 + yFracWidth);
            _cos = new SLVSignal(2 + yFracWidth);

            _dut = new TestHLS_SinCosLUT(xFracWidth, yFracWidth)
            {
                Clk = _clk,
                X = _x,
                Sin = _sin,
                Cos = _cos,
                Rdy = _rdy
            };
            _clkGen = new Clock(new Time(10.0, ETimeUnit.ns))
            {
                Clk = _clk
            };
        }