参数资料
型号: TS-MAC-XM-U4
厂商: Lattice Semiconductor Corporation
文件页数: 57/66页
文件大小: 0K
描述: IP CORE ETH MAC TRI-SPEED XP
标准包装: 1
系列: *
其它名称: TSMACXMU4
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描述
ESM12DSES-S243 CONN EDGECARD 24POS .156 EYELET
M3BFK-2040K IDC CABLE - MSR20K/MC20F/MCF20K
M3BGK-2040K IDC CABLE - MSR20K/MC20F/MCS20K
M3BEK-2040K IDC CABLE - MSR20K/MC20F/MCE20K
TS-MAC-X2-U4 IP CORE ETH MAC 3SPD LATTICEXP2
相关代理商/技术参数
参数描述
TS-MAC-XM-UT4 功能描述:开发软件 ETHERNET MAC TRI-SPEED RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
TSMBG0505C 制造商:未知厂家 制造商全称:未知厂家 功能描述:SINGLE BIDIRECTIONAL BREAKOVER DIODE|100V V(BO) MAX|DO-215AA
TSMBG0506C 制造商:未知厂家 制造商全称:未知厂家 功能描述:SINGLE BIDIRECTIONAL BREAKOVER DIODE|110V V(BO) MAX|DO-214AA
TSMBG0507C 制造商:未知厂家 制造商全称:未知厂家 功能描述:SINGLE BIDIRECTIONAL BREAKOVER DIODE|145V V(BO) MAX|DO-214AA
TSMBG0509C 制造商:未知厂家 制造商全称:未知厂家 功能描述:SINGLE BIDIRECTIONAL BREAKOVER DIODE|185V V(BO) MAX|DO-215AA