Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Using Opencores I2S master

Reply
Thread Tools

Using Opencores I2S master

 
 
cbr_929rr
Guest
Posts: n/a
 
      10-18-2006
I'm trying to use the Opencores I2S master logic as the driver for my
test platform.

The core came configured with SCK = 2.77 MHz and WS(left/right clock)=
69.44 KHz.


I would like to be able to reconfigure the core to generate SCK=3.07MHz

and WS=48 KHz.


I played around with the conf variable but could not get the ratio I'm
looking for.

Will read the documentation but an explanation would certainly help.


Thanks

 
Reply With Quote
 
 
 
 
cbr_929rr
Guest
Posts: n/a
 
      10-19-2006
According to the manual,
The sample rate is given by bit_rate/(RES * 2)

If I choose the sample rate to be 48 KHz, and the resolution is
20-bits,
the bit rate would be 1.92 Mbps.

However, the RATIO would then be calculated as follows.

RATIO= (wishbone_bus_clock - (sample_rate * RES * ) /
(sample_rate * RES * 4)

wishbone_bus_clock= 50 MHz
sample rate = 48 KHz
RES=20 bits

which would then be equal to ~22 (10110)
This is not giving me the values of 48KHz for WS and 3.072 MHz for
i2s_sck.
I am missing something and really need some help.

Thanks,
cbr


cbr_929rr wrote:
> I'm trying to use the Opencores I2S master logic as the driver for my
> test platform.
>
> The core came configured with SCK = 2.77 MHz and WS(left/right clock)=
> 69.44 KHz.
>
>
> I would like to be able to reconfigure the core to generate SCK=3.07MHz
>
> and WS=48 KHz.
>
>
> I played around with the conf variable but could not get the ratio I'm
> looking for.
>
> Will read the documentation but an explanation would certainly help.
>
>
> Thanks


 
Reply With Quote
 
 
 
 
Andy Peters
Guest
Posts: n/a
 
      10-23-2006
cbr_929rr wrote:
> I'm trying to use the Opencores I2S master logic as the driver for my
> test platform.


Why do you need a special I2S core? It's not much more than a couple
of shift registers.

-a

 
Reply With Quote
 
cbr_929rr
Guest
Posts: n/a
 
      10-24-2006
I want to be able to generate close to real I2S transactions that we
will be having in real hardware.

Further, I would like to use Opencores since it is already proven to
work.

I would be thankful if I can get some help on how to re-configure the
core by referring to the configurable parameters in the example I've
mentioned previously.


I'm sure that there are atleast a few people in this group who have
used this core and know how it works.
It's just that I have not had any luck yet in finding the answer even
though I posted this question on comp.arch.fpga, vhdl, embedded and
even on opencores
forum/usenet groups.

Cbr.

Andy Peters wrote:
> cbr_929rr wrote:
> > I'm trying to use the Opencores I2S master logic as the driver for my
> > test platform.

>
> Why do you need a special I2S core? It's not much more than a couple
> of shift registers.
>
> -a


 
Reply With Quote
 
cbr_929rr
Guest
Posts: n/a
 
      10-27-2006
I changed the conf ratio to "00001011", bypassed the WB_interface and
it started working.
The ACLK and LRCLK seemed to be what I expected. However, the SCLK was
not.
I used a FIFO to latch the data and read it out based on ACLK.

Thanks.

Cbr

cbr_929rr wrote:
> I want to be able to generate close to real I2S transactions that we
> will be having in real hardware.
>
> Further, I would like to use Opencores since it is already proven to
> work.
>
> I would be thankful if I can get some help on how to re-configure the
> core by referring to the configurable parameters in the example I've
> mentioned previously.
>
>
> I'm sure that there are atleast a few people in this group who have
> used this core and know how it works.
> It's just that I have not had any luck yet in finding the answer even
> though I posted this question on comp.arch.fpga, vhdl, embedded and
> even on opencores
> forum/usenet groups.
>
> Cbr.
>
> Andy Peters wrote:
> > cbr_929rr wrote:
> > > I'm trying to use the Opencores I2S master logic as the driver for my
> > > test platform.

> >
> > Why do you need a special I2S core? It's not much more than a couple
> > of shift registers.
> >
> > -a


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VHDL example using Opencores I2C component kimberlinbw VHDL 0 07-15-2008 04:01 PM
what happened to opencores.org James Dalton VHDL 8 09-29-2006 02:12 PM
seeking servlet "Master" keep getting "Master/servlet/Master" not found. Tomcat 5.0.25 Doug McCann Java 1 08-05-2004 09:16 PM
Update: Open source Arm model now at opencores Konrad Eisele VHDL 0 04-10-2004 06:55 PM
opencores.org - Question on project licensing? Pacbell User VHDL 6 08-04-2003 05:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57