Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ain1084/serial_audio_encoder

Serial audio encoder
https://github.com/ain1084/serial_audio_encoder

encoder i2s-audio verilog

Last synced: about 1 month ago
JSON representation

Serial audio encoder

Awesome Lists containing this project

README

        

# serial_audio_encoder

Serial audio (I2S or Left justified) encoder.

## Module description

![serial_audio_encoder](https://user-images.githubusercontent.com/14823909/113436176-35a78480-941f-11eb-936f-84346c20c97f.png)

|Name|Direction|Description|
|--|--|--|
|data_width|parameter|Width of channel audio data|
|reset|input|reset signal (active high)|
|clk|input|Input sclk (Eg. Fs:44100Hz/16bit = 44100 * 16 * 2 = 1.4112MHz)|
|is_i2s|input|Serial format (0: Left justified / 1: I2S)|
|lrclk_polarity|input|Left-right clock polarity (0: low = left / 1: low = right)|
|i_valid|input|Input data (i_xxxx) valid|
|i_is_left|input|i_audio channel (0: right / 1: left)|
|i_audio|input|Channel audio data|
|i_ready|output|Data incoming ready|
|sclk|output|Output SCLK signal|
|lrclk|output|Output LRCLK signal|
|sdo|output|Output DATA signal|
|is_underrun|output|Underrun signal (active high)|

## Timming diagram

![is_i2s=0 lrclk_polarity=0](https://user-images.githubusercontent.com/14823909/113443485-0c8df080-942d-11eb-8298-a3c18e720119.png)
![is_i2s=1 lrclk_polarity=1](https://user-images.githubusercontent.com/14823909/113443487-0d268700-942d-11eb-801b-25a3510db615.png)