MasterFpgaTop.v 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. `timescale 1ns / 1ps
  2. //////////////////////////////////////////////////////////////////////////////////
  3. // Company:
  4. // Engineer:
  5. //
  6. // Create Date: 10.10.2018 01:07:38
  7. // Design Name:
  8. // Module Name: sram_ctrl2
  9. // Project Name:
  10. // Target Devices:
  11. // Tool Versions:
  12. // Description:
  13. //
  14. // Dependencies:
  15. //
  16. // Revision:
  17. // Revision 0.01 - File Created
  18. // Additional Comments:
  19. //
  20. //////////////////////////////////////////////////////////////////////////////////
  21. module MasterFpgaTop
  22. (
  23. input Clk_i,
  24. input RstN_i,
  25. input ForceRstN_i,
  26. input [15:0] SmcD_i,
  27. input [24:0] SmcA_i,
  28. input SmcAwe_i,
  29. input SmcAmsN_i,
  30. input SmcAoe_i,
  31. input SmcAre_i,
  32. input [1:0] SmcBe_i,
  33. output [15:0] Data_o,
  34. output [24:0] Addr_o,
  35. output Val_o
  36. );
  37. //================================================================================
  38. // REG/WIRE
  39. wire [24:0] sramSmcAddr;
  40. wire [31:0] sramSmcData;
  41. wire sramVal;
  42. //================================================================================
  43. // LOCALPARAM
  44. //================================================================================
  45. // ASSIGNMENTS
  46. //================================================================================
  47. // CODING
  48. SramRx SramRx
  49. (
  50. .Clk_i (Clk_i ),
  51. .RstN_i (RstN_i),
  52. .ForceRstN_i(ForceRstN_i),
  53. .SmcD_i (SmcD_i),
  54. .SmcA_i (SmcA_i),
  55. .SmcAwe_i (SmcAwe_i),
  56. .SmcAmsN_i (SmcAmsN_i),
  57. .SmcAoe_i (SmcAoe_i),
  58. .SmcAre_i (SmcAre_i),
  59. .SmcBe_i (SmcBe_i),
  60. .Data_o (sramSmcData),
  61. .Addr_o (sramSmcAddr),
  62. .Val_o (sramVal)
  63. );
  64. endmodule