реклама на сайте
подробности

 
 
> LXT972 молчит :(, ...или ошибка в ДНК?
Delsian
сообщение Feb 4 2005, 19:51
Сообщение #1


Частый гость
**

Группа: Свой
Сообщений: 79
Регистрация: 3-02-05
Из: Kiev
Пользователь №: 2 404



Играюсь с контроллером MII на VHDL, прием работает без проблем, а с передачей что-то странное - на 972 идут нормальные сигналы TX_DATA и TX_EN, она клокает TX_CLK, TX_ERR запаян на землю - а на передачу ничего не идет. Осциллограф у меня по полосе до честных 100MHz не дотягивает, но видно, что на выходах TP+ и TP- постоянно бегут импульсы, но сниффер не показывает наличия пакетов, лампочки приема и передачи не моргают. Намекните - в какую сторону копать? Микросхему менял - симптомы те же.


--------------------
Давайте выпьем за алкоголь - источник и решение всех наших проблем! (с) Г.Симпсон
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
myq
сообщение Nov 2 2005, 14:14
Сообщение #2


Местный
***

Группа: Свой
Сообщений: 208
Регистрация: 11-05-04
Из: World wide
Пользователь №: 3



Теперь вопрос возник по CRC32 (FCS).

Использовал генератор исходников CRC - CRCTool (http://www.easics.com/webtools/crctool) но до сих пор не получил CRC, совпадающий с правильным (правильный - беру из принятого пакета).

В доке IEEE 802.3-2002 по поводу расчета CRC сказано следующее:

A cyclic redundancy check (CRC) is used by the transmit and receive algorithms to generate a CRC value
for the FCS field. The frame check sequence (FCS) field contains a 4-octet (32-bit) cyclic redundancy check
(CRC) value. This value is computed as a function of the contents of the source address, destination address,
length, LLC data and pad (that is, all fields except the preamble, SFD, FCS, and extension). The encoding is
defined by the following generating polynomial.
G(x) = x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1
Mathematically, the CRC value corresponding to a given frame is defined by the following procedure:
a) The first 32 bits of the frame are complemented.
b) The n bits of the frame are then considered to be the coefficients of a polynomial M(x) of degree n–1.
(The first bit of the Destination Address field corresponds to the x(n–1) term and the last bit of the
data field corresponds to the x0 term.)
c) M(x) is multiplied by x32 and divided by G(x), producing a remainder R(x) of degree ≤31.
d) The coefficients of R(x) are considered to be a 32-bit sequence.
e) The bit sequence is complemented and the result is the CRC.
The 32 bits of the CRC value are placed in the frame check sequence field so that the x31 term is the leftmost
bit of the first octet, and the x0 term is the right most bit of the last octet. (The bits of the CRC are thus
transmitted in the order x31, x30,…, x1, x0.) See reference [B37].


Что это за пункт такой -
a) The first 32 bits of the frame are complemented

Дополнение..., инверсия бит или еще что? Может в этом проблема?


--------------------
IPSA SCIENTIA POTESTAS EST
Go to the top of the page
 
+Quote Post

Сообщений в этой теме
- Delsian   LXT972 молчит :(   Feb 4 2005, 19:51
- - udofun   вот чуть позже буду сам с подобными глюками возить...   Feb 6 2005, 23:33
- - NeoN   Вчера запустил девайс на 972-й. Трансивер как тран...   Feb 7 2005, 10:16
- - Pahuchy   Цитата(Delsian @ Feb 4 2005, 22:51)Играюсь с ...   Apr 11 2005, 13:51
|- - myq   Вопрос в тему: Судя по ДЩ - для передачи кадра eth...   Oct 28 2005, 10:24
|- - iosifk   Цитата(myq @ Oct 28 2005, 13:24)Вопрос в тему...   Oct 28 2005, 10:34
- - iosifk   Цитата(Delsian @ Feb 4 2005, 22:51)Играюсь с ...   Oct 28 2005, 10:43
|- - myq   Цитата(iosifk @ Oct 28 2005, 10:43)И еще в до...   Oct 28 2005, 11:04
|- - iosifk   Цитата(myq @ Oct 28 2005, 14:04)Цитата(iosifk...   Oct 28 2005, 11:18
- - Iouri   использовал 972 проблем не было попробуйте замкнут...   Oct 28 2005, 12:19
|- - VslavX   А линк 972-ая поднимает? Как параметры линк уста...   Oct 28 2005, 12:41
- - Iouri   да поднимает, устанавливаю автонигшиайшен, посылал...   Oct 29 2005, 01:02
- - myq   Все, проблема решена. Кому еще понадобится - обращ...   Nov 2 2005, 15:18


Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 29th July 2025 - 13:14
Рейтинг@Mail.ru


Страница сгенерированна за 0.01369 секунд с 7
ELECTRONIX ©2004-2016