PeriodicClock PeriodicClock Icon

DiscretePrimitives.PeriodicClock

PeriodicClock(; name, dt, offset = 0.0)

A periodic clock component that generates discrete-time events at regular intervals.

Arguments

  • name: Component name
  • dt: Time interval between clock ticks
  • offset: Phase offset for the clock (default: 0.0)

Variables

  • y(t): Clock output signal

Usage

PrimitiveComponents.DiscretePrimitives.PeriodicClock()

Parameters:

NameDescriptionUnitsDefault value
dt
offset

Connectors

  • y - This connector represents a real signal as an input to a component (RealInput)

Behavior

Behavior of this component cannot be rendered because it includes path variables.

Source

"""
    PeriodicClock(; name, dt, offset = 0.0)

A periodic clock component that generates discrete-time events at regular intervals.

# Arguments
- `name`: Component name
- `dt`: Time interval between clock ticks
- `offset`: Phase offset for the clock (default: 0.0)

# Variables
- `y(t)`: Clock output signal
"""
external component PeriodicClock@[output clk]
  y = RealInput@[clk]()
  structural dt::Real
  structural offset::Real
relations
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://PrimitiveComponents/PeriodicClock.svg"},
    "doc": {"behavior": false}
  }
}
end
Flattened Source
"""
    PeriodicClock(; name, dt, offset = 0.0)

A periodic clock component that generates discrete-time events at regular intervals.

# Arguments
- `name`: Component name
- `dt`: Time interval between clock ticks
- `offset`: Phase offset for the clock (default: 0.0)

# Variables
- `y(t)`: Clock output signal
"""
external component PeriodicClock
  y = RealInput@[clk]()
  structural dt::Real
  structural offset::Real
relations
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://PrimitiveComponents/PeriodicClock.svg"},
    "doc": {"behavior": false}
  }
}
end


Test Cases

No test cases defined.

  • Examples
  • Experiments
  • Analyses