OpenCores
URL https://opencores.org/ocsvn/spdif_transmitter/spdif_transmitter/trunk

Subversion Repositories spdif_transmitter

[/] [spdif_transmitter/] [trunk/] [README.md] - Rev 3

Compare with Previous | Blame | View Log

### SPDIF Transmitter

Github:   [http://github.com/ultraembedded/cores](https://github.com/ultraembedded/cores/tree/master/spdif)

This is a simple SPDIF transmitter module written in Verilog.

This module can either generate its own audio clock by dividing down clk_i or can use an external audio clock to drive the output stream via audio_clk_i.

For external clocking mode, the audio_clk_i clock rate should be:
* 32KHz - 4.096MHz
* 44.1KHz - 5.6448MHz
* 48KHz - 6.144MHz

Note that in external clocking mode, the frequency of clk_i must be more than 4 x audio_clk_i frequency.

For internal clocking mode, the clk_i input is divided to roughly the right frequency required for chosen the sample rate. This isn't going to be exact!

The input interface expects 32-bits (2 x 16-bit audio samples) to be provided to it on 'sample_i' and held until 'sample_req_o' is pulsed (data pop request).

This allows connection to a simple FIFO for audio samples.

##### Testing

Tested on a Pioneer VSX D510 over TOSLINK and also on a cheap no-brand Ebay D/A converter.

The supplied testbench requires the SystemC libraries and Icarus Verilog, both of which are available for free.

##### Configuration

* CLK_RATE_KHZ - Clock speed (clk_i) in KHz
* AUDIO_RATE - Audio sample rate, e.g. 44100 or 48000
* AUDIO_CLK_SRC - Can be INTERNAL or EXTERNAL

##### Size / Performance

With the default configuration...
* the design contains 69 flops, 3 adders, 2 comparators, 11 multiplexers (according to ISE).

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.