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

Subversion Repositories tdm

[/] [tdm/] [trunk/] [docs/] [tdm_project.html] - Rev 6

Compare with Previous | Blame | View Log

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
           "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<META NAME="GENERATOR" CONTENT="TtH 2.67">
 
 
 
<H3 align=center>Jamil Khatib </H3>
 
<title> TDM controller core</title>
 
<H1 align="center">TDM controller core </H1>
 
<p>
 
<center>(C) Copyright 2001 Jamil Khatib.</center>
 
<p>
 
<H1>Contents </H1><A href="#tth_sEc1"
>1&nbsp; List of authors and changes</A><br>
<A href="#tth_sEc2"
>2&nbsp; Project Definition</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc2.1"
>2.1&nbsp; Introduction</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc2.2"
>2.2&nbsp; Objectives</A><br>
<A href="#tth_sEc3"
>3&nbsp; Specifications</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc3.1"
>3.1&nbsp; System Features Specification</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc3.2"
>3.2&nbsp; External Interfaces</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc3.2.1"
>3.2.1&nbsp; Back-end interface mapping to Wishbone SoC bus</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc3.2.2"
>3.2.2&nbsp; CPU interface</A><br>
<A href="#tth_sEc4"
>4&nbsp; Internal Blocks</A><br>
<A href="#tth_sEc5"
>5&nbsp; Design description</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.1"
>5.1&nbsp; ST-Bus interface</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.1.1"
>5.1.1&nbsp; Design notes</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.1.2"
>5.1.2&nbsp; Timing</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.2"
>5.2&nbsp; External FIFO</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.2.1"
>5.2.1&nbsp; Notes</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.3"
>5.3&nbsp; ISDN support</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.4"
>5.4&nbsp; Registers</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.4.1"
>5.4.1&nbsp; Transmit</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.4.2"
>5.4.2&nbsp; Receive</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc5.5"
>5.5&nbsp; Diagrams</A><br>
<A href="#tth_sEc6"
>6&nbsp; Testing and verifications</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc6.1"
>6.1&nbsp; Simulation and Test benches</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc6.2"
>6.2&nbsp; Verification techniques and algorithms</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc6.3"
>6.3&nbsp; Test plans</A><br>
<A href="#tth_sEc7"
>7&nbsp; Implementations</A><br>
&nbsp;&nbsp;&nbsp;&nbsp;<A href="#tth_sEc7.1"
>7.1&nbsp; Scripts, files and any other information</A><br>
<A href="#tth_sEc8"
>8&nbsp; Reviews and comments</A><br>
<A href="#tth_sEc9"
>9&nbsp; References</A><br>
 
<p>
        <H2><A NAME="tth_sEc1">
1</A>&nbsp;&nbsp;List of authors and changes</H2>
 
<p>
 
<TaBle border>
<tr><td>Name </td><td>Changes </td><td>Date </td><td>Contact address</td></tr><tr><td>
<tr><td>Jamil Khatib </td><td>Initial release </td><td>3-2-2001 </td><td>khatib@ieee.org </td></tr>
<tr><td>Jamil Khatib </td><td>General review and CPU interface added </td><td>10-2-2001 </td><td>khatib@ieee.org </td></tr>
<tr><td>Jamil Khatib </td><td>ISDN support added </td><td>3-4-2001 </td><td>khatib@ieee.org </td></tr>
<tr><td>Jamil Khatib </td><td>Buffer Calculations added </td><td>9-4-2001 </td><td>khatib@ieee.org </td></tr>
<tr><td>Jamil Khatib </td><td>General review </td><td>25-5-2001 </td><td>khatib@ieee.org </td></tr></TaBle>
 
 
<p>
        <H2><A NAME="tth_sEc2">
2</A>&nbsp;&nbsp;Project Definition</H2>
 
<p>
      <H3><A NAME="tth_sEc2.1">
2.1</A>&nbsp;&nbsp;Introduction</H3>
Time devision multiplexing is a scheme used to communicate between systems or devices via shared interface lines. Each device or system gets the access to this interface in a single time slot.
 
<p>
      <H3><A NAME="tth_sEc2.2">
2.2</A>&nbsp;&nbsp;Objectives</H3>
The aim of this project is to develop the basic TDM functionalities to be used by many communication systems like ISDN, E1, and voice codecs.
 
<p>
        <H2><A NAME="tth_sEc3">
3</A>&nbsp;&nbsp;Specifications</H2>
 
<p>
      <H3><A NAME="tth_sEc3.1">
3.1</A>&nbsp;&nbsp;System Features Specification</H3>
 
<OL type="1">
 
<li> Supports E1 bit rate and time slots (32 time slots or 32 DS0 channels at bit rate 2.048Mbps)
 
<li> Supports ST-Bus (Serial Telecom bus) interface.
 
<li> Routes time slots to/from HDLC controller via the backend interface and software support or to/from memory.
 
<li> Supports read for all or partial TDM slots from the ST-bus.
 
<li> Supports write for all or partial TDM slots to ST-bus.
 
<li> It supports N&times;64 mode (i.e. it supports sampling (or writing) to N consecutive time slots)
 
<li> Supports two serial lines one input and one output.
 
<li> Can be connected to other ST-Bus compatible devices via serial or star configurations.
 
<li> If no data is available for transmission it sends all ones.
 
<li> Backend interface uses the Wishbone bus interface which can be connected directly to the system or via FIFO buffer.
 
<li> Optional External FIFO buffer, configuration and status registers.
 
<li> The core will be made of two levels of hierarchies, the basic functionality and the Optional interfaces and buffers which makes it easy to add extra serial lines by duplicating the TDM controllers in parallel.
 
<li> ISDN (2B+D) support can be supported by adding three parallel HDLC controllers on the first three time slots.
</OL>
<p>
      <H3><A NAME="tth_sEc3.2">
3.2</A>&nbsp;&nbsp;External Interfaces</H3>
 
<p>
 
<TaBle border>
<tr><td>Signal name</td><td>Direction</td><td>Description</td></tr><tr><td>
<tr><td>Control interface </td><td></td><td></td></tr><tr><td>
<tr><td>CLK_I </td><td>Input </td><td>System clock </td></tr>
<tr><td>Rst_n </td><td>Input </td><td>System asynchronous reset (active low)</td></tr>
<tr><td>NoChannels[4:0] </td><td>Input </td><td>Number of time slots (Can be fixed)</td></tr>
<tr><td>DropChannels[4:0] </td><td>Input </td><td>Number of time slots to be dropped (Can be fixed)</td></tr><tr><td>
<tr><td>Serial Interface (ST-Bus)</td><td></td><td></td></tr><tr><td>
<tr><td>C2 </td><td>Input </td><td>Bus Clock</td></tr>
<tr><td>DSTi </td><td>Input</td><td>Receive serial Data</td></tr>
<tr><td>DSTo </td><td>Output </td><td>Transmit serial Data</td></tr>
<tr><td>F0_n </td><td>Input </td><td>Framing pulse (active low)</td></tr>
<tr><td>F0od_n </td><td>Output </td><td>Delayed Framing pulse (active low) generated after the channels has handled</td></tr><tr><td>
<tr><td>Back-end Interface (Received)</td><td></td><td></td></tr><tr><td>
<tr><td>RxD[7:0]</td><td>Output</td><td>Receive data bus</td></tr>
<tr><td>RxValidData</td><td>Output</td><td>Valid Data</td></tr>
<tr><td>FrameErr</td><td>Output</td><td>Error in the received data</td></tr>
<tr><td>Read</td><td>Input</td><td>Read byte</td></tr>
<tr><td>Ready</td><td>Output</td><td>Valid data exists</td></tr><tr><td>
<tr><td>Back-end Interface (Transmited)</td><td></td><td></td></tr><tr><td>
<tr><td>TxD[7:0]</td><td>Input</td><td>Transmit data bus</td></tr>
<tr><td>TxValidData</td><td>Input</td><td>Valid Data</td></tr>
<tr><td>Write</td><td>Input</td><td>Write byte</td></tr>
<tr><td>Ready</td><td>Output</td><td>Ready to get data</td></tr>
<tr><td>TxErr</td><td>Output</td><td>Buffer under flow</td></tr></TaBle>
 
 
<p>
       <H4><A NAME="tth_sEc3.2.1">
3.2.1</A>&nbsp;&nbsp;Back-end interface mapping to Wishbone SoC bus</H4>
The TDM backend interface is divided into two parts one for receive and one for transmit.It can be used as a slave core or master according to the below mapping. The core supports SINGLE READ/WRITE Cycle only using 8-bit data bus without address lines. The choice between master and slave is left for the system integrator and must do the configuration and glue logic as defined in the tables.  
<br>
<p>
 
<p><A NAME="tth_fIg1">
</A> <a href="wishlogo.ps">Figure</a><A NAME="Logo">
</A><p>
<TaBle border>
<tr><td>Signal Name</td><td>Wishbone signal</td></tr><tr><td>
<tr><td>Master Configuration connected to FIFO</td><td>Receive channel</td></tr>
<tr><td>CLK_I </td><td>CLK_I</td></tr>
<tr><td>Rst </td><td>not RST_I</td></tr>
<tr><td>RxD[7:0]</td><td>DAT_O(7:0)</td></tr>
<tr><td>RxValidData</td><td>STB_O</td></tr>
<tr><td>RxValidData</td><td>CYC_O</td></tr>
<tr><td>Read</td><td>ACK_I and not RTY_I</td></tr>
<tr><td>Ready</td><td>WE_O</td></tr>
<tr><td>FrameERR</td><td>TAG0_O</td></tr>
<tr><td>Slave FIFO(two-clock domain FIFO)</td><td></td></tr>
<tr><td>Data[7:0]</td><td>DAT_I(7:0)</td></tr>
<tr><td>Chip Select</td><td>STB_I</td></tr>
<tr><td>STB_I and not FullFlag</td><td>ACK_O</td></tr>
<tr><td>FullFlag</td><td>RTY_O</td></tr>
<tr><td>Write</td><td>WE_I</td></tr>
<tr><td>Slave Configuration </td><td></td></tr>
<tr><td>CLK_I </td><td>CLK_I</td></tr>
<tr><td>Rst </td><td>not RST_I</td></tr>
<tr><td>RxD[7:0]</td><td>DAT_O(7:0)</td></tr>
<tr><td>RxValidData</td><td>TAG0_O</td></tr>
<tr><td>ReadByte</td><td>not WE_I</td></tr>
<tr><td>Ready</td><td>not RTY_O</td></tr>
<tr><td>STB_I and not WR_I</td><td>ACK_O</td></tr>
<tr><td>FrameERR</td><td>TAG1_O</td></tr></TaBle>
 
 
<p>
 
<TaBle border>
<tr><td>Signal Name</td><td>Wishbone signal</td></tr><tr><td>
<tr><td>Master Configuration connected to FIFO</td><td>Transmit channel</td></tr><tr><td>
<tr><td>C2 </td><td>CLK_I</td></tr>
<tr><td>Rst </td><td>not RST_I</td></tr>
<tr><td>TxD[7:0]</td><td>DAT_I(7:0)</td></tr>
<tr><td>Write</td><td>ACK_I and not RTY_I</td></tr>
<tr><td>Ready</td><td>not WE_O</td></tr>
<tr><td>TxValidData</td><td>TAG0_I</td></tr>
<tr><td>Always Active </td><td>CYC_O</td></tr>
<tr><td>Always Active </td><td>STB_O</td></tr>
<tr><td>Slave FIFO(two-clock domain FIFO)</td><td></td></tr>
<tr><td>Data[31:0]</td><td>DAT_I(31:0)</td></tr>
<tr><td>EmptyFlag</td><td>RTY_O</td></tr>
<tr><td>Read</td><td>WE_I</td></tr>
<tr><td>WE_I and not EmptyFlag</td><td>ACK_O</td></tr>
<tr><td>ChipSelect</td><td>STB_I</td></tr>
<tr><td>Slave Configuration </td><td></td></tr>
<tr><td>C2 </td><td>CLK_I</td></tr>
<tr><td>Rst </td><td>not RST_I</td></tr>
<tr><td>TxD[7:0]</td><td>DAT_I(7:0)</td></tr>
<tr><td>TxValidData</td><td>STB_I</td></tr>
<tr><td>Write</td><td>WE_I</td></tr>
<tr><td>Ready</td><td>not RTY_O</td></tr>
<tr><td>STB_I and WR_I</td><td>ACK_O</td></tr></TaBle>
 
 
<p>
       <H4><A NAME="tth_sEc3.2.2">
3.2.2</A>&nbsp;&nbsp;CPU interface</H4>
This interface is used when the FIFO and registers are included in the Core. This interface is compatible to WishBone slave bus interface that supports single read/write cycles and block cycles. The interface supports the following wishbone signals.
 
<p>
 
<TaBle border>
<tr><td>Signal</td><td>Note</td></tr><tr><td>
<tr><td>RST_I</td><td>Reset</td></tr>
<tr><td>CLK_I</td><td>Clock</td></tr>
<tr><td>ADR_I(2:0)</td><td>3-bit address line</td></tr>
<tr><td>DAT_O(7:0)</td><td>8-bit receive data</td></tr>
<tr><td>DAT_I(7:0)</td><td>8-bit transmit data</td></tr>
<tr><td>WE_I</td><td>Read/write</td></tr>
<tr><td>STB_I</td><td>Strobe</td></tr>
<tr><td>ACK_O</td><td>Acknowledge</td></tr>
<tr><td>CYC_I</td><td>Cycle</td></tr>
<tr><td>RTY_O</td><td>Retry</td></tr>
<tr><td>TAG0_O</td><td>TxDone interrupt</td></tr>
<tr><td>TAG1_O</td><td>RxReady interrupt</td></tr></TaBle>
 
 
<p>
        <H2><A NAME="tth_sEc4">
4</A>&nbsp;&nbsp;Internal Blocks</H2>
 
<p>
        <H2><A NAME="tth_sEc5">
5</A>&nbsp;&nbsp;Design description</H2>
 
<p>
      <H3><A NAME="tth_sEc5.1">
5.1</A>&nbsp;&nbsp;ST-Bus interface</H3>
The TDM controller interfaces to the TDM lines via serial telecom bus. The interface uses the external input clock (2.048MHz) for all of the internal serial logic. It detects the incoming framing pulse to synchronize the sampling and transmission of bits. The core reads and writes only the specified number of TDM channels (8-bits) by the size bus (No. of channels register). In the transmission mode the output pin should be disabled after writing the configured time slots. It generates also the output delayed framing pulse after it samples all the specified bits (TDM channels). This feature can be used to cascade controllers for different TDM channels.
 
<p>
       <H4><A NAME="tth_sEc5.1.1">
5.1.1</A>&nbsp;&nbsp;Design notes</H4>
 
<p>
       <H4><A NAME="tth_sEc5.1.2">
5.1.2</A>&nbsp;&nbsp;Timing</H4>
 
<p>
      <H3><A NAME="tth_sEc5.2">
5.2</A>&nbsp;&nbsp;External FIFO</H3>
The controller has optional external FIFO buffers, one for data to be transmitted and one for data to be received. Status and control registers are available to control these FIFOs. These two blocks (FIFOs and registers) are  built around the TDM controller core which make them optional if the core is to be used in different kind of applications.
 
<p>
The current implementation supports the following configuration: 
The size of the Transmit and receive FIFOs is (8&times;32) bits which enables the whole TDM frame to be buffered.
 
<p>
The transmit buffer is used to prevent underflow while transmitting bytes to the line. All bytes will be available once the transmit is enabled. If the transmit FIFO is empty the core will transmit ones. The Receive buffer is used to provide data burst transfer to the Back end interface which prevents the back end from reading each byte alone. The FIFO size is suitable for operating frequencies 2.048MHz on the serial interface and 20 MHz on the back end interface. Other frequencies can operate if the back end can read the entire TDM frame before the first byte of the next frame is written (the next calculations is an example to be applied for different frequencies)
 
<p>
8 bits (Time needed to receive the first byte of the next frame) / 2.048MHz = 3.9 us
 
<p>
32 Bytes (Maximum frame size) / 20MHz = 1.6 us
 
<p>
These FIFOs are implemented on Single port memory. It is the responsibility of the external interface to write/read data to/from the FIFOs. TxDone and RxRdy interrupts are generated when the Tx buffer is empty and Rx buffer has data respectively .
 
<p>
       <H4><A NAME="tth_sEc5.2.1">
5.2.1</A>&nbsp;&nbsp;Notes</H4>
 
<UL>
 
<p>
 
<li> <b>Transmit Operation:</b> If the transmit FIFO is empty not enough data bytes is available according to no. of channels (caused by incomplete burst transfer, the core sets the Aborted bit in the TX status and control register and sends all ones in the transmit serial line.
 
<p>
 
<li> <b>Transmit Operation:</b> The back end (software) should write data to the Tx buffer register according to the configured number of time slots. The transmission will start only after the specified number of slots are available in the buffer other wise Aborted bit of the Tx Status register will be set and all ones will be transmitted  in this slot.
 
<p>
 
<li> <b>Receive Operation:</b> When Receive FIFO is full It drops the second FIFO contents and sets overflow bit in the Rx Status and Control register.
 
<p>
 
<li> <b>Receive Operation:</b> When RxRdy Interrupt is asserted (or RxRdy bit is set) the back end interface (software) must read the specified number of slots from the Rx Data buffer register or the buffer will not be marked as empty.
</UL>
<p>
      <H3><A NAME="tth_sEc5.3">
5.3</A>&nbsp;&nbsp;ISDN support</H3>
In order to provide (2B+D) ISDN support three HDLC controllers should be used on three time slots. The serial data the of first three time slots will enter (or get out) directly to (from) the three parallel HDLC controllers if HDLCen bit is set in the Tx Status and Control register. The HDLC controllers will be managed through the enable signals (each controller will be enabled on its corresponding time slot). 
 
<p>
Eventhoush the ISDN controller is based on TDM but separate controller will be used that extracts and writes 2B+D only.
 
<p>
 
<p><A NAME="tth_fIg1">
</A> <a href="tdm_ISDN_top.ps">Figure</a> <center>Figure 1: ISDN support</center><A NAME="isdn">
</A>
<p>
<p>
      <H3><A NAME="tth_sEc5.4">
5.4</A>&nbsp;&nbsp;Registers</H3>
All internal registers are 32-bit width.
 
<p>
       <H4><A NAME="tth_sEc5.4.1">
5.4.1</A>&nbsp;&nbsp;Transmit</H4>
 
<p>
 
<TaBle>
<tr><td><b>Tx Status and Control Register: Tx_SC</b> </td><td>Offset Address = 0x0</td></tr></TaBle>
<br>
 
<p>
 
<TaBle border><tr><td>
<tr><td>BIT   </td><td align="center">7 </td><td align="center">6 </td><td align="center">5 </td><td align="center">4 </td><td align="center">3 </td><td align="center">2 </td><td align="center">1 </td><td align="center">0</td></tr>
<tr><td>FIELD </td><td align="center">N/A </td><td align="center">N/A </td><td align="center">N/A </td><td align="center">N/A</td><td align="center">must be set to 0</td><td align="center">TxUnderflow</td><td align="center">TxOverflow</td><td align="center">TxDone(empty)</td></tr>
<tr><td>RESET </td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td></tr>
<tr><td>R/W   </td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td><td align="center">RW</td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td></tr></TaBle>
<br>
 
<p>
 
<TaBle>
<tr><td><b>Tx FIFO buffer register: Tx_Buffer</b> </td><td>Offset Address = 0x1</td></tr></TaBle>
<br>
 
<p>
 
<TaBle border><tr><td>
<tr><td>BIT   </td><td align="center">31-0</td></tr>
<tr><td>FIELD </td><td align="center">Transmit Data</td></tr>
<tr><td>RESET </td><td align="center">0x0</td></tr>
<tr><td>R/W   </td><td align="center">WO</td></tr></TaBle>
 
writing before TxDone is set has no effect. Extra writes more than defined by noChannels - DropChannels has no effect either.
 
<p>
       <H4><A NAME="tth_sEc5.4.2">
5.4.2</A>&nbsp;&nbsp;Receive</H4>
 
<p>
 
<TaBle>
<tr><td><b>Rx Status and Control Register: Rx_SC</b> </td><td>Offset Address = 0x2</td></tr></TaBle>
<br>
 
<p>
 
<TaBle border><tr><td>
<tr><td>BIT   </td><td align="center">7 </td><td align="center">6 </td><td align="center">5 </td><td align="center">4 </td><td align="center">3 </td><td align="center">2 </td><td align="center">1 </td><td align="center">0</td></tr>
<tr><td>FIELD </td><td align="center">N/A </td><td align="center">N/A </td><td align="center">N/A </td><td align="center">N/A</td><td align="center">N/A</td><td align="center">RxBufferOverflow</td><td align="center">RxLineOverflow</td><td align="center">RxReady(Full)</td></tr>
<tr><td>RESET </td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">0</td></tr>
<tr><td>R/W   </td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td><td align="center">RO</td></tr></TaBle>
<br>
 
<p>
RxLineOverflow: Overflow on serial Line buffer.
 
<p>
 
<TaBle>
<tr><td><b>Rx FIFO buffer register: Rx_Buffer</b> </td><td>Offset Address = 0x3</td></tr></TaBle>
<br>
 
<p>
 
<TaBle border><tr><td>
<tr><td>BIT   </td><td align="center">31-0</td></tr>
<tr><td>FIELD </td><td align="center">Received Data byte</td></tr>
<tr><td>RESET </td><td align="center">0x0</td></tr>
<tr><td>R/W   </td><td align="center">RO</td></tr></TaBle>
<br>
Reading before RxRdy is set or more than NoChannels-DropChannels carries no data.
 
<p>
 
<TaBle>
<tr><td><b>configuration register: CFG</b> </td><td>Offset Address = 0x4</td></tr></TaBle>
<br>
 
<p>
 
<TaBle border><tr><td>
<tr><td>BIT  </td><td align="center">12-8 </td><td align="center">7-5 </td><td align="center">4-0</td></tr>
<tr><td>FIELD </td><td align="center">DropChannels </td><td align="center">reserved </td><td align="center">No. of channels</td></tr>
<tr><td>RESET </td><td align="center">0x00 </td><td align="center">0X0 </td><td align="center">0x00</td></tr>
<tr><td>R/W   </td><td align="center">RW</td><td align="center">RO </td><td align="center">RW</td></tr></TaBle>
<br>
No of channels indicates total number of channels to be handled after the framing pulse by the controller. Single channel at least must be handled so 0x00 indicates single channel and so on.<br>
DropChannels indicates number of channels to be dropped (not handled) after the framing pulse and before the first channel to be handled.<br>
 
<p>
Example number of channels to be read is 2 starting after 3 channels from the framing pulse: NoChannels = 0x04 and DropChannels = 0x03<br>
 
<p>
<b>ISDN registers</b> The ISDN controller is a separate core that has three HDLC controllers. Each HDLC controller has its own Wishbone interface and registers for information about the HDLC registers refer to the HDLC core document.
 
<p>
      <H3><A NAME="tth_sEc5.5">
5.5</A>&nbsp;&nbsp;Diagrams</H3>
 
<p>
 
<p><A NAME="tth_fIg2">
</A> <a href="tdm_core.ps">Figure</a> <center>Figure 2: TDM core</center><A NAME="Core">
</A>
<p>
<p>
 
<p><A NAME="tth_fIg3">
</A> <a href="tdm_top.ps">Figure</a> <center>Figure 3: TDM controller</center><A NAME="top">
</A>
<p>
<p>
        <H2><A NAME="tth_sEc6">
6</A>&nbsp;&nbsp;Testing and verifications</H2>
 
<p>
 
<TaBle border>
<tr><td>Requirement </td><td>Test method </td><td>Validation method </td></tr><tr><td>
<tr><td>Interface timing </td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr><tr><td>
<tr><td>Functionality </td><td></td><td></td></tr></TaBle>
 
 
      <H3><A NAME="tth_sEc6.1">
6.1</A>&nbsp;&nbsp;Simulation and Test benches</H3>
 
<p>
      <H3><A NAME="tth_sEc6.2">
6.2</A>&nbsp;&nbsp;Verification techniques and algorithms</H3>
 
<p>
      <H3><A NAME="tth_sEc6.3">
6.3</A>&nbsp;&nbsp;Test plans</H3>
 
<p>
        <H2><A NAME="tth_sEc7">
7</A>&nbsp;&nbsp;Implementations</H2>
 
<p>
The  design is implemented using the VHDL language. The design is divided into three blocks, serial interface, Buffers and Wishbone interface with internal registers. The TDM controller uses the wishbone clock as its main clock and uses the ST-bus clock as enables for the internal logic.
 
<p>
      <H3><A NAME="tth_sEc7.1">
7.1</A>&nbsp;&nbsp;Scripts, files and any other information</H3>
 
<TaBle border>
<tr><td>Core Files </td><td></td></tr>
<tr><td>tdm_cont.vhd </td><td>Serial Interface</td></tr>
<tr><td>RxTDMBuff.vhd </td><td>Rx Buffer</td></tr>
<tr><td>TxTDMBuffer.vhd </td><td>Tx Buffer</td></tr>
<tr><td>tdm_wb_if.vhd </td><td>Wish bone interface and registers</td></tr>
<tr><td>tdm_core_top.vhd </td><td>TDM top block</td></tr>
<tr><td>components_pkg.vhd </td><td>TDM core components</td></tr>
<tr><td>Script files </td><td></td></tr>
<tr><td>Build_TDM_cont.csh </td><td>NC-sim build all files script</td></tr>
<tr><td>cds.lib </td><td>NC-sim configuration file</td></tr>
<tr><td>hdl.var </td><td>NC-sim configuration file</td></tr>
<tr><td>Test Bench files </td><td></td></tr>
<tr><td>tdm_cont_top.vhd </td><td>TDM controller Top test bench</td></tr>
<tr><td>ISDN controller </td><td></td></tr>
<tr><td>ISDN_cont.vhd </td><td>Serial Interface</td></tr>
<tr><td>ISDN_cont_top.vhd </td><td>ISDN top block</td></tr></TaBle>
 
Notes: in order to implement the ISDN controller HDLC core files must be included.
The following memory cores files must be included to implement the buffers: tools_pkg.vhd , mem_pkg.vhd and spmem.vhd
 
<p>
        <H2><A NAME="tth_sEc8">
8</A>&nbsp;&nbsp;Reviews and comments</H2>
 
<p>
        <H2><A NAME="tth_sEc9">
9</A>&nbsp;&nbsp;References</H2>
 
<p>
 

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.