devices.xylo.syns61201.est_clock_freq

devices.xylo.syns61201.est_clock_freq(config: XyloConfiguration, dt: float, margin: float = 0.2)[source]

Estimate the required master clock frequency, to run a network in real-time

This function will perform a worst-case analysis, assuming that every input channel, every hidden neuron and every output neuron fire an event on each dt. An additional margin is included (Default: 20%), to guarantee that the model will run in real time at the suggested master clock frequency.

Parameters:
  • config (XyloA2Config) – A Xylo Audio 2 configuration for which to estimate the required clock frequency

  • dt (float) – The required network dt, in seconds

  • margin (float) – The additional overhead safety margin to add to the estimation, as a fraction. Default: 0.2 (20%)