e1_tx_phy.v 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * e1_tx_phy.v
  3. *
  4. * vim: ts=4 sw=4
  5. *
  6. * E1 TX IOB instances
  7. *
  8. *
  9. * Copyright (C) 2019 Sylvain Munaut <tnt@246tNt.com>
  10. * All rights reserved.
  11. *
  12. * LGPL v3+, see LICENSE.lgpl3
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU Lesser General Public
  16. * License as published by the Free Software Foundation; either
  17. * version 3 of the License, or (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  22. * Lesser General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU Lesser General Public License
  25. * along with this program; if not, write to the Free Software Foundation,
  26. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  27. */
  28. `default_nettype none
  29. module e1_tx_phy (
  30. // IO pads
  31. output wire pad_tx_hi,
  32. output wire pad_tx_lo,
  33. // Input
  34. input wire tx_hi,
  35. input wire tx_lo,
  36. // Common
  37. input wire clk,
  38. input wire rst
  39. );
  40. SB_IO #(
  41. .PIN_TYPE(6'b010100),
  42. .PULLUP(1'b0),
  43. .NEG_TRIGGER(1'b0),
  44. .IO_STANDARD("SB_LVCMOS")
  45. ) tx_hi_I (
  46. .PACKAGE_PIN(pad_tx_hi),
  47. .LATCH_INPUT_VALUE(1'b0),
  48. .CLOCK_ENABLE(1'b1),
  49. .INPUT_CLK(1'b0),
  50. .OUTPUT_CLK(clk),
  51. .OUTPUT_ENABLE(1'b0),
  52. .D_OUT_0(tx_hi),
  53. .D_OUT_1(1'b0),
  54. .D_IN_0(),
  55. .D_IN_1()
  56. );
  57. SB_IO #(
  58. .PIN_TYPE(6'b010100),
  59. .PULLUP(1'b0),
  60. .NEG_TRIGGER(1'b0),
  61. .IO_STANDARD("SB_LVCMOS")
  62. ) tx_lo_I (
  63. .PACKAGE_PIN(pad_tx_lo),
  64. .LATCH_INPUT_VALUE(1'b0),
  65. .CLOCK_ENABLE(1'b1),
  66. .INPUT_CLK(1'b0),
  67. .OUTPUT_CLK(clk),
  68. .OUTPUT_ENABLE(1'b0),
  69. .D_OUT_0(tx_lo),
  70. .D_OUT_1(1'b0),
  71. .D_IN_0(),
  72. .D_IN_1()
  73. );
  74. endmodule // e1_tx_phy