Forum Discussion
Altera_Forum
Honored Contributor
16 years ago[TSE] how have the datas from fifo tse ?
Hi,
I need some help about triple speed ethernet (tse) to receive and transmit datas. I have paid for IP-TRIETHERNET + IP-NIOS + IP-TCPIP-NIOS. The altera support and commercial contact told me that I need only this pack to do the gigabit... I add gigabit to our board. We need 10/100 and 1G in ethernet. We use the marvel 88E1111 like phy and cyclone II (stratix III too on other board). We connect the phy marvell with altera in mii / gmii mode. I have a nios II with the tse module. With the advise of altera support, I do my sopc project with the "Triple Speed Ethernet Data Path Rference Design" aka AN483. But with this exemple , I can't send my own datas or receive and display the datas that I receive. The module "eth_gene" can send only random datas or incremental datas and "eth_moni" can count the bytes received and mentionned if packets with error or not. I don't understand why we need other module to have the datas or to send our own messages because I paid for doing all in gigabit. If I want to use the "simple socket server " exemple code, I need to use the "sgdma" module but it is not free. (see in ug_ethernet.pdf 6.2) And why didn't tell me that I need other thing to use my tse pack ? So, is the sgdma module important ? necessary ? or can I create my own module to use the streaming (in and out) from my tse module in the nios. Our board must send any datas that we want and receive any datas on ethernet. How can I access to the datas in the fifo of the triple speed ethernet module ? I need help about this and it's very urgent. Thanks Cordialy, Benoît Edit : my .qar file ici (http://exterminabur.free.fr/etep608a_dtd_ben.qar)33 Replies
- Altera_Forum
Honored Contributor
You should be able to use the simple socket server example.
You are right, sgdma module is required for tse connection to nios, but actually it is free, included in sopc builder standard components. This is true for Cyclone III, but afaik for Cyclone II and Stratix, too. Cris - Altera_Forum
Honored Contributor
--- Quote Start --- You should be able to use the simple socket server example. You are right, sgdma module is required for tse connection to nios, but actually it is free, included in sopc builder standard components. This is true for Cyclone III, but afaik for Cyclone II and Stratix, too. Cris --- Quote End --- Hi Cris, thanks for information for sgdma module I find it. Now I try to configure it to add to my sopc For the example, I think I must add the "mdio" in the tse module ,doesn't you ? Edit: I must add two "sgdma" module for each streaming from tse module ? - Altera_Forum
Honored Contributor
Hi,
You usually always need to include mdio interface in order to configure your phy run time. Otherwise you are forced to use a few standard configurations, selected by pulling up/down some phy strap pins during reset. Regarding sopc builder connections, you need both a tx sgdma and a rx sgdma for a single tse module. Cris - Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
I attach a .sopc file which includes tse.
I hope you can open it with sopc builder, so you can get all the information you need. Regards Cris - Altera_Forum
Honored Contributor
great
I'm looking that In waiting, I add a "on chip memory" to connect all ^^ to test it. Thanks but I don't understand why these information are not included or explain with more details in documentation from altera. In altera support, I didn't have the same help and not these information. thanks again. I open it immediatly. Ben - Altera_Forum
Honored Contributor
Hello again
so , thanks for the sopc file I do my sopc with success ;) but now, in nios II ide, I want to compile but I have some errors. I don't have the files "altera_avalon_sgdma_regs.h" , "altera_avalon_sgdma_descriptor.h" and "altera_avalon_sgdma.h". So my compilation failed. Why these files don't give in base ? where can I have it ? thanks again Ben - Altera_Forum
Honored Contributor
Hi Ben,
On my system , the files are here: \altera\90sp2\ip\altera\sopc_builder_ip\altera_avalon_sgdma Check if you have them, too. Maybe in a different directory if you are using a different version. Probably you are missing the include paths in Nios IDE. Cris - Altera_Forum
Honored Contributor
Hello Cris,
yes I do the files in the same directory So, I'm looking for this problem and why I have this error : " c:/Trav_Quartus/etep608A/etep608A_Cyclone/software/prog_nios1_etep608A_bsp/drivers/src/altera_avalon_tse.c:31: ./drivers/inc/altera_avalon_tse.h:96:33: altera_avalon_sgdma.h: No such file or directory" I'll back soon if I find th reason. Edit:in fact, these files don't appear in my "bsp" in the folder "driver" so I have this error but "# ifdef __ALTERA_AVALON_SGDMA" is ok and recognize... I don't understand - Altera_Forum
Honored Contributor
Hi again,
all adds are ok. but I have a new problem. My ram memory (external) is called "ramprog" and the base address is "0x8a00000". Before changing (add "sgdma modules"), I control the base address in th .objdump generated and it is "0x8a00000" ,So , ok. but after changing, (add "sgdma modules" with your help) my new .objdump file have the base address (to start) to "0x8a00230". So my program doesn't work. i don't undestand why the "start" address has changing. I check it on the sopc, and the base address is good (0x8a00000) and in my bsp project (in nios II ide) the base address is 0x8a000000 too. can you help me ? maybe an option in bsp editor I must change ?