URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
[/] [minsoc/] [branches/] [verilator/] [bench/] [verilog/] [minsoc_bench_clock.v] - Rev 128
Go to most recent revision | Compare with Previous | Blame | View Log
`include "minsoc_bench_defines.v" `include "timescale.v" module minsoc_verilog_bench(); `ifdef POSITIVE_RESET localparam RESET_LEVEL = 1'b1; `elsif NEGATIVE_RESET localparam RESET_LEVEL = 1'b0; `else localparam RESET_LEVEL = 1'b1; `endif reg clock, reset, eth_tx_clk, eth_rx_clk; minsoc_bench minsoc_bench_0( .clock(clock), .reset(reset), .eth_tx_clk(eth_tx_clk), .eth_rx_clk(eth_rx_clk) ); initial begin reset = ~RESET_LEVEL; clock = 1'b0; eth_tx_clk = 1'b0; eth_rx_clk = 1'b0; // Reset controller repeat (2) @ (negedge clock); reset = RESET_LEVEL; repeat (16) @ (negedge clock); reset = ~RESET_LEVEL; end // // Regular clocking and output // always begin #((`CLK_PERIOD)/2) clock <= ~clock; end //Generate tx and rx clocks always begin #((`ETH_PHY_PERIOD)/2) eth_tx_clk <= ~eth_tx_clk; end always begin #((`ETH_PHY_PERIOD)/2) eth_rx_clk <= ~eth_rx_clk; end //~Generate tx and rx clocks endmodule
Go to most recent revision | Compare with Previous | Blame | View Log