bareil76
Newbie level 6
- Joined
- Sep 28, 2012
- Messages
- 11
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,357
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?