protected override IEnumerable <TAVerb> RealizeDefault() { return(_host.TASite.RShift( SignalSource.Create(StdLogicVector._0s(_host.DataWidth)), SignalSource.Create(StdLogicVector._0s(_host.ShiftWidth)), SignalSink.Nil <StdLogicVector>())); }
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>())); }
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; }
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; }
protected override IEnumerable <TAVerb> RealizeDefault() { return(_host.TASite.Read(SignalSink.Nil <StdLogicVector>())); }
protected override IEnumerable <TAVerb> RealizeDefault() { return(_site.Id(SignalSource.Create <StdLogicVector>("0"), SignalSink.Nil <StdLogicVector>())); }