S/PDIF frame encoder.Using valid-ready handshake.
Name | Direction | Description |
---|---|---|
reset | input | reset signal (active high) |
clk128 | input | x128Fs clock (Eg. Fs:44100Hz = 5.6448MHz) |
i_valid | input | Data valid |
i_ready | output | Data incoming ready |
i_audio[audio_width-1:0] | input | PCM audio data (2's complement) |
i_is_left | input | i_audio channel (0: right / 1: left) |
i_user | input | Value of sub frame 'U' bit |
i_control | input | Value of sub frame 'C' bit |
next_sub_frame_number[8:0] | output | Next sub frame number (0-383). The next sub frame number requested when i_ready is signaled. |
spdif | output | S/PDIF signal output |