Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,752 Views

vlan tagging in ethermac

Hi Folks, 

 

is there any support of vlantagging on the tx-side of the Altera tse-mac, in the featurelist of the userguide (page 8, http://www.altera.co.jp/literature/ug/ug_ethernet.pdf) i find the support of vlan and stacked vlan.  

 

in the description of the status/config register I only find registers and signals for VLAN on rx side.  

 

Is there any possibility to transmit vlan-tagged frames with ethermac. 

 

best regards 

 

mooresstudent
0 Kudos
10 Replies
Altera_Forum
Honored Contributor I
47 Views

Hello, 

 

Yes, you can transmit VLAN frames with TSE MAC. However, there is no "automatic VLAN tag insertion" feature. You have to set your frame up properly (with VLAN tag included) and then ask the TSE to send it. 

 

Regards, 

Franck.
Altera_Forum
Honored Contributor I
47 Views

Thank you for your reply Franck, it is too simple ;). I am just a ethernetnoob...  

 

Thread can be closed
Altera_Forum
Honored Contributor I
47 Views

How do you take care of receiving VLAN tagged messages, Franck? Did you modify the driver file (ins_tse_mac.c) to strip the tags before sending the ethernet packet to the nicheStack or added an interface to the tse[iface]? Is there an easy way to do this? 

-ravi23
Altera_Forum
Honored Contributor I
47 Views

Hi ravi23, 

 

I didn't use the nicheStack nor any IP stack. I used the TSE directly in my logic design so I had no problem handling those VLAN frames..... 

 

I can't help you with nicheStack, sorry.... 

 

Franck.
Altera_Forum
Honored Contributor I
47 Views

Franck, 

Thanks for your reply. I have another thread in the uC/OS section that may be of interest to you. This is regarding the changes I am making to the drivers / Nichestack for my application.  

-Ravi
Altera_Forum
Honored Contributor I
47 Views

 

--- Quote Start ---  

Hi ravi23, 

 

I didn't use the nicheStack nor any IP stack. I used the TSE directly in my logic design so I had no problem handling those VLAN frames..... 

 

I can't help you with nicheStack, sorry.... 

 

Franck. 

--- Quote End ---  

 

 

How did you manage to detect VLAN from the rx_frm_type[3:0] signal in your logic? :confused: 

I have not found the trick! :( (using full TSE w/FIFO). Want to connect my eth_mon.v to these signals for realtime broadcast filtering and VLAN monitoring. 

Thank for any tips! 

mike
Altera_Forum
Honored Contributor I
47 Views

In the magawizard, make sur you have enabled "VLAN detecttion".  

If you are using the small MAC variation, you don't have this option. 

 

I don't use rx_frm_type in my design because I'm using the small MAC. 

However, you can check for the VLAN TAG while receiving the frames to see if it's VLAN.... 

 

Franck.
Altera_Forum
Honored Contributor I
47 Views

 

--- Quote Start ---  

In the magawizard, make sur you have enabled "VLAN detecttion".  

If you are using the small MAC variation, you don't have this option. 

 

I don't use rx_frm_type in my design because I'm using the small MAC. 

However, you can check for the VLAN TAG while receiving the frames to see if it's VLAN.... 

 

Franck. 

--- Quote End ---  

 

 

Franck, Thanks for the reply.... 

I do have this enabled (thank you). And while I can monitor the VLAN status, the issue is that I need to monitor real-time, frame-by-frame, the VLAN, Broadcast, Multicast and unicast Frame Type status signals provided by the MAC so that I may 'handle' or process them as appropriate for my application. My MAC implementation provides these signals rx_frm_type[3:0] and clearly describes them in the documentation. However a module I have created to monitor incoming packets so far I have been unable 'connect' to these signals. How and What must I do to enable access to these signals (provided by the TSE)? 

 

 

Thanks for your input, 

mike
Altera_Forum
Honored Contributor I
47 Views

 

--- Quote Start ---  

Hi Folks, 

 

is there any support of vlantagging on the tx-side of the Altera tse-mac, in the featurelist of the userguide (page 8, http://www.cusabio.com/pro_7.html) i find the support of vlan and stacked vlan.  

 

in the description of the status/config register I only find registers and signals for VLAN on rx side.  

 

Is there any possibility to transmit vlan-tagged frames with ethermac. 

 

best regards 

 

mooresstudent 

--- Quote End ---  

 

Hello! I have another thread in the uC/OS section that may be of interest to you. This is regarding the changes I am making to the drivers / Nichestack for my application.
Altera_Forum
Honored Contributor I
47 Views

....I looked at your other posts - but could not tell which one you are referring to! ??

Reply