参数资料
型号: TS-MAC-SC-UT4
厂商: Lattice Semiconductor Corporation
文件页数: 57/66页
文件大小: 0K
描述: SITE LICENSE ETH MAC TRI SC/SCM
标准包装: 1
系列: *
其它名称: TSMACSCUT4
Lattice Semiconductor
Table 5-3. Counter Registers
Application Support
FPGA Signal Name
hclk
phy_reset_n
FPGA Pin
Input
Output
Notes
Host bus clock
Reset to external PHY (optional signal)
Code Listing for Multicast Bit Selection Hash Algorithm in C Language
The code listing below is to aid software developers in programming the multicast tables in the TSMAC IP core
when the core is programmed to receive multicast frames.
When a software developer wishes to accept a specific multicast address, they should follow the hash algorithm
illustrated in the C language code listing to determine which filter bit in the multicast registers to set. The C algo-
rithm returns the multicastcast_table register index (0 to 7) as well as the bit within the register that needs to be set
(0 to 7) based on a given multicast destination address input to the algorithm. Several bits can be set to accept sev-
eral multicast addresses. If all 64 multicast filter register bits are set to 1, then all received multicast addresses will
be passed to the MAC client interface.
#include <stdio.h>
#include <stdlib.h>
//Hexadecimal equivalent of the CRC
//equn.
#define CRC_POLYNOMIAL 0x04c11db6
int main(int argc, unsigned char *argv[])
{
//The Multicast address is held in a 6 byte
//array
unsigned char multi_addr[6];
// variables
unsigned long int crc;
unsigned int val;
int i, j, bit;
int carry;
int register_no, register_bit;
crc = 0xffffffff;
// check number of arguments
if (argc != 7) {
printf("Invoke eth_crc with arguments specifying a MAC Address.\n");
printf("Use hex format and blanks.\n");
printf("Example:\n");
printf("eth_crc 01 A2 B3 C4 D5 E6\n");
system("PAUSE");
return 1;
}
printf("\n DA ");
// Input data from command line
for (j=0; j<6; j++)
{
sscanf(argv[j+1], "%x", &val);
multi_addr[j] = (unsigned char) val;
printf("%s", argv[j+1]);
}
printf("\n");
IPUG51_03.0, December 2010
57
Tri-Speed Ethernet MAC User’s Guide
相关PDF资料
PDF描述
VI-J0T-EZ-F4 CONVERTER MOD DC/DC 6.5V 25W
M3CGK-2620K IDC CABLE - MKC26K/MC26F/MCS26K
TS-MAC-PM-UT4 SITE LICENSE ETH MAC TRI ECP2M
VI-J0T-EZ-F2 CONVERTER MOD DC/DC 6.5V 25W
TS-MAC-P2-UT4 SITE LICENSE ETH MAC TRI ECP2
相关代理商/技术参数
参数描述
TSMACX2U2 功能描述:以太网模块 TriSpd Ethernet MAC RoHS:否 制造商:Lantronix 产品:Device Servers 数据速率:300 bps to 921.6 kbps, 10 Mbps, 100 Mbps 接口类型:Ethernet, Serial 工作电源电压:5 V to 15 V 工作电源电流:133 mA to 400 mA 最大工作温度:+ 70 C
TS-MAC-X2-U3 功能描述:开发软件 Ethernet MAC TriSPD RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
TS-MAC-X2-U4 功能描述:开发软件 ETHERNET MAC TRI-SPEED RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
TS-MAC-X2-UT4 功能描述:开发软件 ETHERNET MAC TRI-SPEED RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
TSMACXMU2 功能描述:以太网模块 TriSpd Ethernet MAC RoHS:否 制造商:Lantronix 产品:Device Servers 数据速率:300 bps to 921.6 kbps, 10 Mbps, 100 Mbps 接口类型:Ethernet, Serial 工作电源电压:5 V to 15 V 工作电源电流:133 mA to 400 mA 最大工作温度:+ 70 C