Test Modes
The example design with external PHY includes software for the Sapphire SoC in the
tseDemo directory. In addition to the source code, Efinix provides compile binary files using predefined settings so you can
easily try out the two test modes:
- Normal Test Mode – Use the tseDemo.elf file in the build\test_mode_0 directory.
- Linked-partner Test Mode – Use the tseDemo.elf file in the build\test_mode_1 directory.
You can also customize the test modes by changing the variables in the Sapphire SoC software driver code, embedded_sw\sapphire\bsp\efinix\EfxSapphireSoc\app\tseDemo.h file. However, you must rebuild the software if you change any variable.
/************************** Project Header File ***************************/
#define PRINTF_EN 1
#define TEST_MODE 1 //0 : Normal Mode; 1 : Link partner Test Mode;
#define PAT_NUM 100
#define PAT_DLEN 100
#define PAT_IPG 100
#define PAT_TYPE 0 //0 : UDP Pattern; 1 : MAC Pattern;
#define DST_MAC_H 0xffff
#define DST_MAC_L 0xffffffff
#define SRC_MAC_H 0xeae8
#define SRC_MAC_L 0x5e0060c8
#define SRC_IP 0xc0a80164
#define DST_IP 0xc0a80165
#define SRC_PORT 0x0521
#define DST_PORT 0x2715