URL
https://opencores.org/ocsvn/ethernet_tri_mode/ethernet_tri_mode/trunk
Subversion Repositories ethernet_tri_mode
Compare Revisions
- This comparison shows the changes necessary to convert path
/ethernet_tri_mode/trunk/rtl/verilog/TECH/xilinx
- from Rev 22 to Rev 33
- ↔ Reverse comparison
Rev 22 → Rev 33
/CLK_DIV2.v
0,0 → 1,71
////////////////////////////////////////////////////////////////////// |
//// //// |
//// CLK_DIV2.v //// |
//// //// |
//// This file is part of the Ethernet IP core project //// |
//// http://www.opencores.org/projects.cgi/web/ethernet_tri_mode///// |
//// //// |
//// Author(s): //// |
//// - Jon Gao (gaojon@yahoo.com) //// |
//// //// |
//// //// |
////////////////////////////////////////////////////////////////////// |
//// //// |
//// Copyright (C) 2001 Authors //// |
//// //// |
//// This source file may be used and distributed without //// |
//// restriction provided that this copyright statement is not //// |
//// removed from the file and that any derivative work contains //// |
//// the original copyright notice and the associated disclaimer. //// |
//// //// |
//// This source file is free software; you can redistribute it //// |
//// and/or modify it under the terms of the GNU Lesser General //// |
//// Public License as published by the Free Software Foundation; //// |
//// either version 2.1 of the License, or (at your option) any //// |
//// later version. //// |
//// //// |
//// This source is distributed in the hope that it will be //// |
//// useful, but WITHOUT ANY WARRANTY; without even the implied //// |
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //// |
//// PURPOSE. See the GNU Lesser General Public License for more //// |
//// details. //// |
//// //// |
//// You should have received a copy of the GNU Lesser General //// |
//// Public License along with this source; if not, download it //// |
//// from http://www.opencores.org/lgpl.shtml //// |
//// //// |
////////////////////////////////////////////////////////////////////// |
// |
// CVS Revision History |
// |
// $Log: not supported by cvs2svn $ |
// Revision 1.1 2006/06/22 09:01:42 Administrator |
// no message |
// |
// Revision 1.2 2005/12/16 06:44:20 Administrator |
// replaced tab with space. |
// passed 9.6k length frame test. |
// |
// Revision 1.1.1.1 2005/12/13 01:51:44 Administrator |
// no message |
// |
|
|
////////////////////////////////////////////////////////////////////// |
// This file can only used for simulation . |
// You need to replace it with your own element according to technology |
////////////////////////////////////////////////////////////////////// |
|
module CLK_DIV2 ( |
input Reset, |
input IN, |
output reg OUT |
); |
|
always @ (posedge IN or posedge Reset) |
if (Reset) |
OUT <=0; |
else |
OUT <=!OUT; |
|
endmodule |
/duram.v
0,0 → 1,60
module duram( |
data_a, |
data_b, |
wren_a, |
wren_b, |
address_a, |
address_b, |
clock_a, |
clock_b, |
q_a, |
q_b); |
|
parameter DATA_WIDTH = 36; |
parameter ADDR_WIDTH = 9; |
parameter BLK_RAM_TYPE = "AUTO"; |
parameter ADDR_DEPTH = 2**ADDR_WIDTH; |
|
|
|
input [DATA_WIDTH -1:0] data_a; |
input wren_a; |
input [ADDR_WIDTH -1:0] address_a; |
input clock_a; |
output [DATA_WIDTH -1:0] q_a; |
input [DATA_WIDTH -1:0] data_b; |
input wren_b; |
input [ADDR_WIDTH -1:0] address_b; |
input clock_b; |
output [DATA_WIDTH -1:0] q_b; |
|
wire [35:0] do_b; |
wire [35:0] din_a; |
|
assign din_a =data_a; |
assign q_b =do_b; |
|
|
RAMB16_S36_S36 U_RAMB16_S36_S36 ( |
.DOA ( ), |
.DOB (do_b[31:0] ), |
.DOPA ( ), |
.DOPB (do_b[35:32] ), |
.ADDRA (address_a ), |
.ADDRB (address_b ), |
.CLKA (clock_a ), |
.CLKB (clock_b ), |
.DIA (din_a[31:0] ), |
.DIB ( ), |
.DIPA (din_a[35:32] ), |
.DIPB ( ), |
.ENA (1'b1 ), |
.ENB (1'b1 ), |
.SSRA (1'b0 ), |
.SSRB (1'b0 ), |
.WEA (wren_a ), |
.WEB (1'b0 )); |
|
endmodule |
|
|
/CLK_SWITCH.v
0,0 → 1,74
////////////////////////////////////////////////////////////////////// |
//// //// |
//// CLK_SWITCH.v //// |
//// //// |
//// This file is part of the Ethernet IP core project //// |
//// http://www.opencores.org/projects.cgi/web/ethernet_tri_mode///// |
//// //// |
//// Author(s): //// |
//// - Jon Gao (gaojon@yahoo.com) //// |
//// //// |
//// //// |
////////////////////////////////////////////////////////////////////// |
//// //// |
//// Copyright (C) 2001 Authors //// |
//// //// |
//// This source file may be used and distributed without //// |
//// restriction provided that this copyright statement is not //// |
//// removed from the file and that any derivative work contains //// |
//// the original copyright notice and the associated disclaimer. //// |
//// //// |
//// This source file is free software; you can redistribute it //// |
//// and/or modify it under the terms of the GNU Lesser General //// |
//// Public License as published by the Free Software Foundation; //// |
//// either version 2.1 of the License, or (at your option) any //// |
//// later version. //// |
//// //// |
//// This source is distributed in the hope that it will be //// |
//// useful, but WITHOUT ANY WARRANTY; without even the implied //// |
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //// |
//// PURPOSE. See the GNU Lesser General Public License for more //// |
//// details. //// |
//// //// |
//// You should have received a copy of the GNU Lesser General //// |
//// Public License along with this source; if not, download it //// |
//// from http://www.opencores.org/lgpl.shtml //// |
//// //// |
////////////////////////////////////////////////////////////////////// |
// |
// CVS Revision History |
// |
// $Log: not supported by cvs2svn $ |
// Revision 1.1 2006/06/22 09:01:42 Administrator |
// no message |
// |
// Revision 1.2 2005/12/16 06:44:20 Administrator |
// replaced tab with space. |
// passed 9.6k length frame test. |
// |
// Revision 1.1.1.1 2005/12/13 01:51:44 Administrator |
// no message |
// |
|
|
////////////////////////////////////////////////////////////////////// |
// This file can only used for simulation . |
// You need to replace it with your own element according to technology |
////////////////////////////////////////////////////////////////////// |
module CLK_SWITCH ( |
input IN_0, |
input IN_1, |
input SW , |
output OUT |
|
); |
|
BUFGMUX U_BUFGMUX ( |
.O (OUT ), |
.I0 (IN_0 ), |
.I1 (IN_1 ), |
.S (SW )); |
|
//assign OUT=SW?IN_1:IN_0; |
|
endmodule |