commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r6434 - gnuradio/branches/developers/matt/u2f/top/u2_s


From: matt
Subject: [Commit-gnuradio] r6434 - gnuradio/branches/developers/matt/u2f/top/u2_sim
Date: Thu, 13 Sep 2007 21:33:49 -0600 (MDT)

Author: matt
Date: 2007-09-13 21:33:49 -0600 (Thu, 13 Sep 2007)
New Revision: 6434

Modified:
   gnuradio/branches/developers/matt/u2f/top/u2_sim/u2_sim_top.v
Log:
added eth phy simulation


Modified: gnuradio/branches/developers/matt/u2f/top/u2_sim/u2_sim_top.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/top/u2_sim/u2_sim_top.v       
2007-09-14 03:29:06 UTC (rev 6433)
+++ gnuradio/branches/developers/matt/u2f/top/u2_sim/u2_sim_top.v       
2007-09-14 03:33:49 UTC (rev 6434)
@@ -94,8 +94,8 @@
    wire        clk_status;
    
    // Clocks
-   reg        clk_fpga;
-   wire        clk_to_mac;
+   reg                clk_fpga;
+   reg                clk_to_mac;
    wire        pps_in;
    
    // Generic SPI
@@ -119,13 +119,15 @@
    reg                aux_clk;
 
    initial aux_clk= 1'b0;
-   always #25 aux_clk = ~aux_clk;
+   always #23 aux_clk = ~aux_clk;
    
    initial clk_fpga = 1'bx;
    initial #3007 clk_fpga = 1'b0;
-   always #7 clk_fpga = ~clk_fpga;
+   always #5 clk_fpga = ~clk_fpga;
+   
+   initial clk_to_mac = 0;
+   always #4 clk_to_mac = ~clk_to_mac;
 
-
    wire        div_clk;
    reg [2:0]   div_ctr = 0;
    
@@ -163,6 +165,13 @@
       
.adc_a(adc_a),.adc_ovf_a(adc_ovf_a),.adc_oen_a(adc_oen_a),.adc_pdn_a(adc_pdn_a),
       
.adc_b(adc_b),.adc_ovf_b(adc_ovf_b),.adc_oen_b(adc_oen_b),.adc_pdn_b(adc_pdn_b));
 
+   Phy_sim phy_model
+     (.Gtx_clk(GMII_GTX_CLK), . Rx_clk(CMII_RX_CLK), .Tx_clk(GMII_TX_CLK),
+      .Tx_er(GMII_TX_ER), .Tx_en(GMII_TX_EN), .Txd(GMII_TXD),
+      .Rx_er(GMII_RX_ER), .Rx_dv(GMII_RX_DV), .Rxd(GMII_RXD),
+      .Crs(GMII_CRS), .Col(GMII_COL),
+      .Speed(3'b100), .Done(0) );
+   
    xlnx_glbl glbl (.GSR(),.GTS());
    
    u2_basic u2_basic(.dsp_clk          (dsp_clk),





reply via email to

[Prev in Thread] Current Thread [Next in Thread]