diff options
author | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-03-31 06:55:21 +0000 |
---|---|---|
committer | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-03-31 06:55:21 +0000 |
commit | 3c19bda615e79c1de341f69ed9845c5e35334571 (patch) | |
tree | 0406d719c2036b8e485cccc11d65ef300204b144 /simple_gemac/simple_gemac_tx.v | |
parent | 97357ec460e5663f5dc84c2a109f654d2fd5af51 (diff) | |
download | uhd-3c19bda615e79c1de341f69ed9845c5e35334571.tar.gz uhd-3c19bda615e79c1de341f69ed9845c5e35334571.tar.bz2 uhd-3c19bda615e79c1de341f69ed9845c5e35334571.zip |
everything but CRC
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10717 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'simple_gemac/simple_gemac_tx.v')
-rw-r--r-- | simple_gemac/simple_gemac_tx.v | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/simple_gemac/simple_gemac_tx.v b/simple_gemac/simple_gemac_tx.v index b104d91a5..783f69e45 100644 --- a/simple_gemac/simple_gemac_tx.v +++ b/simple_gemac/simple_gemac_tx.v @@ -195,15 +195,25 @@ module simple_gemac_tx wire clear_crc = (tx_state == TX_IDLE); - wire calc_crc_pre = (tx_state==TX_FIRSTBYTE)||(tx_state==TX_IN_FRAME)|| - ((tx_state==TX_IN_FRAME_2)&tx_valid )||(tx_state==TX_PAD )||(tx_state[6]); - reg calc_crc; - always @(posedge tx_clk) - calc_crc <= calc_crc_pre; - +// wire calc_crc_pre = (tx_state==TX_FIRSTBYTE)||(tx_state==TX_IN_FRAME)|| +// ((tx_state ==TX_IN_FRAME_2)&tx_valid )||(tx_state==TX_PAD )||(tx_state[6]); + // reg calc_crc; + // always @(posedge tx_clk) + // calc_crc <= calc_crc_pre; + wire calc_crc = 0; + + /* + wire calc_crc = ~(tx_state==TX_IDLE) & + ~(tx_state==TX_IDLE) & + ~(tx_state==TX_IDLE) & + ~(tx_state==TX_IDLE) & + */ crc crc(.clk(tx_clk), .reset(reset), .clear(clear_crc), .data(txd_pre), .calc(calc_crc), .crc_out(crc_out)); + +// .data(txd_pre), .calc(calc_crc & ~(tx_state==TX_CRC_0)), .crc_out(crc_out)); + assign tx_ack = (tx_state == TX_FIRSTBYTE); reg tx_valid_d1; |