Пример #1
0
 protected override IEnumerable <TAVerb> RealizeDefault()
 {
     return(_host.TASite.RShift(
                SignalSource.Create(StdLogicVector._0s(_host.DataWidth)),
                SignalSource.Create(StdLogicVector._0s(_host.ShiftWidth)),
                SignalSink.Nil <StdLogicVector>()));
 }
Пример #2
0
 protected override IEnumerable <TAVerb> RealizeDefault()
 {
     ISignalSource <StdLogicVector>[] ops = Enumerable.Repeat(
         SignalSource.Create(StdLogicVector._0s(_host.WordWidth)),
         _host.NumWords).ToArray();
     return(_host.TASite.Concat(ops, SignalSink.Nil <StdLogicVector>()));
 }
Пример #3
0
        private void mapOutputs()
        {
            var outputs = new List <ISignalSink>();

            for (int i = 0; i < device.Channels; i++)
            {
                var output = new SignalSink(this, i);
                output.ReceivedData += output_ReceivedData;
                output.Name          = string.Format("{0} Output {1}", device.Name, i);

                device.Buffers[i] = null;

                outputs.Add(output);
            }
            Sinks = outputs;
        }
Пример #4
0
        private void mapOutputs(AsioOut driver)
        {
            var channelCount = driver.DriverOutputChannelCount;

            receivedData = new float[channelCount][];

            var outputs = new List <ISignalSink>();

            for (int i = 0; i < channelCount; i++)
            {
                var output = new SignalSink(this, i);
                output.ReceivedData += output_ReceivedData;
                output.Name          = driver.AsioOutputChannelName(i);

                receivedData[i] = null;

                outputs.Add(output);
            }
            Sinks = outputs;
        }
Пример #5
0
 protected override IEnumerable <TAVerb> RealizeDefault()
 {
     return(_host.TASite.Read(SignalSink.Nil <StdLogicVector>()));
 }
Пример #6
0
 protected override IEnumerable <TAVerb> RealizeDefault()
 {
     return(_site.Id(SignalSource.Create <StdLogicVector>("0"), SignalSink.Nil <StdLogicVector>()));
 }