123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /*
- * e1_tx_phy.v
- *
- * vim: ts=4 sw=4
- *
- * E1 TX IOB instances
- *
- *
- * Copyright (C) 2019 Sylvain Munaut <tnt@246tNt.com>
- * All rights reserved.
- *
- * LGPL v3+, see LICENSE.lgpl3
- *
- * This program 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 3 of the License, or (at your option) any later version.
- *
- * This program 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 program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
- `default_nettype none
- module e1_tx_phy (
- // IO pads
- output wire pad_tx_hi,
- output wire pad_tx_lo,
- // Input
- input wire tx_hi,
- input wire tx_lo,
- // Common
- input wire clk,
- input wire rst
- );
- SB_IO #(
- .PIN_TYPE(6'b010100),
- .PULLUP(1'b0),
- .NEG_TRIGGER(1'b0),
- .IO_STANDARD("SB_LVCMOS")
- ) tx_hi_I (
- .PACKAGE_PIN(pad_tx_hi),
- .LATCH_INPUT_VALUE(1'b0),
- .CLOCK_ENABLE(1'b1),
- .INPUT_CLK(1'b0),
- .OUTPUT_CLK(clk),
- .OUTPUT_ENABLE(1'b0),
- .D_OUT_0(tx_hi),
- .D_OUT_1(1'b0),
- .D_IN_0(),
- .D_IN_1()
- );
- SB_IO #(
- .PIN_TYPE(6'b010100),
- .PULLUP(1'b0),
- .NEG_TRIGGER(1'b0),
- .IO_STANDARD("SB_LVCMOS")
- ) tx_lo_I (
- .PACKAGE_PIN(pad_tx_lo),
- .LATCH_INPUT_VALUE(1'b0),
- .CLOCK_ENABLE(1'b1),
- .INPUT_CLK(1'b0),
- .OUTPUT_CLK(clk),
- .OUTPUT_ENABLE(1'b0),
- .D_OUT_0(tx_lo),
- .D_OUT_1(1'b0),
- .D_IN_0(),
- .D_IN_1()
- );
- endmodule // e1_tx_phy
|