aboutsummaryrefslogtreecommitdiffstats
path: root/simple_gemac/simple_gemac_tx.v
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-03-31 07:51:53 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-03-31 07:51:53 +0000
commit232d0b049a42d97c2e105164c2703d210e37bc9b (patch)
tree1ff1a0e6db78492b01661a69c5a6d021937e31c8 /simple_gemac/simple_gemac_tx.v
parent807014e4ad3b32bcc455bca4390e5cb2ec5b9512 (diff)
downloaduhd-232d0b049a42d97c2e105164c2703d210e37bc9b.tar.gz
uhd-232d0b049a42d97c2e105164c2703d210e37bc9b.tar.bz2
uhd-232d0b049a42d97c2e105164c2703d210e37bc9b.zip
cleaned up a little
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10719 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'simple_gemac/simple_gemac_tx.v')
-rw-r--r--simple_gemac/simple_gemac_tx.v37
1 files changed, 18 insertions, 19 deletions
diff --git a/simple_gemac/simple_gemac_tx.v b/simple_gemac/simple_gemac_tx.v
index d164d3fed..ffc8f6e99 100644
--- a/simple_gemac/simple_gemac_tx.v
+++ b/simple_gemac/simple_gemac_tx.v
@@ -201,30 +201,11 @@ module simple_gemac_tx
(tx_state==TX_PAD) |
(tx_state[6]);
- reg [7:0] crc_ctr;
- reg calc_crc_d1;
- always @(posedge tx_clk)
- calc_crc_d1 <= calc_crc;
-
- always @(posedge tx_clk)
- if(reset)
- crc_ctr <= 0;
- else if(calc_crc)
- crc_ctr <= crc_ctr+1;
- else if(calc_crc_d1)
- $display("CRC COUNT = %d",crc_ctr);
- else
- crc_ctr <= 0;
-
crc crc(.clk(tx_clk), .reset(reset), .clear(clear_crc),
.data(txd_pre), .calc(calc_crc), .crc_out(crc_out));
assign tx_ack = (tx_state == TX_FIRSTBYTE);
- reg tx_valid_d1;
- always @(posedge tx_clk)
- tx_valid_d1 <= tx_valid;
-
always @(posedge tx_clk)
begin
GMII_TX_EN <= tx_en_pre;
@@ -244,3 +225,21 @@ module simple_gemac_tx
end
endmodule // simple_gemac_tx
+
+// Testing code
+/*
+ reg [7:0] crc_ctr;
+ reg calc_crc_d1;
+ always @(posedge tx_clk)
+ calc_crc_d1 <= calc_crc;
+
+ always @(posedge tx_clk)
+ if(reset)
+ crc_ctr <= 0;
+ else if(calc_crc)
+ crc_ctr <= crc_ctr+1;
+ else if(calc_crc_d1)
+ $display("CRC COUNT = %d",crc_ctr);
+ else
+ crc_ctr <= 0;
+*/