Veryl registryAkiyukiOkayasu/gndless-midi-veryl · gndless_midiSource ↗

Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

MidiRx

MIDI UARTレシーバ

非同期MIDI入力を同期化して8N1のデータを受信し、1バイト受信ごとにvalidを1クロックだけアサート

CLK_FREQは入力クロック周波数をHzで指定。 8N1 frame、LSB-first、中央samplingのタイミングはgndless_uart::UartRxのWavedromを参照。本moduleではその前段に2段synchronizerが加わる。

Parameters


CLK_FREQ u32 入力クロック周波数 [Hz]

Ports


clk input clock システムクロック
rst input reset リセット
rx input logic MIDI入力信号 (非同期)
data output logic<8> MIDIデータバイト
valid output logic MIDIデータ受信完了フラグ (1クロックパルス)