bareil76
Newbie level 6
Hi All,
I have a simple code running in a Spartan 6 device. I can flash leds and everything works fine.
I have the following peice of code. Where Tx_mac_wa is always 0
I have verified
1)Clk_SYS is workin
2) Tx_Hwmark_pl is 9
3) Tx_Lwmark_pl is 8
4) Fifo_data_count is 0
Am I missing something?
I have a simple code running in a Spartan 6 device. I can flash leds and everything works fine.
I have the following peice of code. Where Tx_mac_wa is always 0
I have verified
1)Clk_SYS is workin
2) Tx_Hwmark_pl is 9
3) Tx_Lwmark_pl is 8
4) Fifo_data_count is 0
Code:
always @ (posedge Clk_SYS or posedge Reset)
if (Reset)
Tx_mac_wa <=0;
else if (Fifo_data_count>=Tx_Hwmark_pl)
Tx_mac_wa <=0; //then...Tx_mac_wa will be asserted 0 to tell user application to hold packet transmitting./
else if (Fifo_data_count<=Tx_Lwmark_pl)
Tx_mac_wa <=1;
Am I missing something?