mkBlueDMAVivado.v 32.7 KB
Newer Older
Jens Korinth's avatar
Jens Korinth committed
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
  // value method fpga_rd_arqos
  assign m32_axi_arqos = blueDMA$fpga_rd_arqos ;

  // value method fpga_rd_arregion
  assign m32_axi_arregion = blueDMA$fpga_rd_arregion ;

  // value method fpga_rd_aruser
  assign m32_axi_aruser = blueDMA$fpga_rd_aruser ;

  // value method fpga_rd_rready
  assign m32_axi_rready = blueDMA$fpga_rd_rready ;

  // value method fpga_wr_awvalid
  assign m32_axi_awvalid = blueDMA$fpga_wr_awvalid ;

1016
1017
1018
  // value method fpga_wr_awid
  assign m32_axi_awid = blueDMA$fpga_wr_awid ;

Jens Korinth's avatar
Jens Korinth committed
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
  // value method fpga_wr_awaddr
  assign m32_axi_awaddr = blueDMA$fpga_wr_awaddr ;

  // value method fpga_wr_awlen
  assign m32_axi_awlen = blueDMA$fpga_wr_awlen ;

  // value method fpga_wr_awsize
  assign m32_axi_awsize = blueDMA$fpga_wr_awsize ;

  // value method fpga_wr_awburst
  assign m32_axi_awburst = blueDMA$fpga_wr_awburst ;

  // value method fpga_wr_awlock
  assign m32_axi_awlock = blueDMA$fpga_wr_awlock ;

  // value method fpga_wr_awcache
  always@(blueDMA$fpga_wr_awcache)
  begin
    case (blueDMA$fpga_wr_awcache)
      4'd0, 4'd1, 4'd2, 4'd3, 4'd6, 4'd7, 4'd14:
	  m32_axi_awcache = blueDMA$fpga_wr_awcache;
      default: m32_axi_awcache = 4'd15;
    endcase
  end

  // value method fpga_wr_awprot
  assign m32_axi_awprot = blueDMA$fpga_wr_awprot ;

  // value method fpga_wr_awqos
  assign m32_axi_awqos = blueDMA$fpga_wr_awqos ;

  // value method fpga_wr_awregion
  assign m32_axi_awregion = blueDMA$fpga_wr_awregion ;

  // value method fpga_wr_awuser
  assign m32_axi_awuser = blueDMA$fpga_wr_awuser ;

  // value method fpga_wr_wvalid
  assign m32_axi_wvalid = blueDMA$fpga_wr_wvalid ;

  // value method fpga_wr_wdata
  assign m32_axi_wdata = blueDMA$fpga_wr_wdata ;

  // value method fpga_wr_wstrb
  assign m32_axi_wstrb = blueDMA$fpga_wr_wstrb ;

  // value method fpga_wr_wlast
  assign m32_axi_wlast = blueDMA$fpga_wr_wlast ;

  // value method fpga_wr_wuser
  assign m32_axi_wuser = blueDMA$fpga_wr_wuser ;

  // value method fpga_wr_bready
  assign m32_axi_bready = blueDMA$fpga_wr_bready ;

  // value method interrupt
  assign IRQ = blueDMA$interrupt ;

  // submodule blueDMA
  mkBlueDMA blueDMA(.CLK_m32_axi_aclk(m32_axi_aclk),
		    .RST_N_m32_axi_arestn(m32_axi_aresetn),
		    .CLK_m64_axi_aclk(m64_axi_aclk),
		    .RST_N_m64_axi_arestn(m64_axi_aresetn),
		    .CLK(s_axi_aclk),
		    .RST_N(s_axi_aresetn),
		    .S_AXI_araddr(blueDMA$S_AXI_araddr),
		    .S_AXI_arprot(blueDMA$S_AXI_arprot),
		    .S_AXI_arvalid(blueDMA$S_AXI_arvalid),
		    .S_AXI_awaddr(blueDMA$S_AXI_awaddr),
		    .S_AXI_awprot(blueDMA$S_AXI_awprot),
		    .S_AXI_awvalid(blueDMA$S_AXI_awvalid),
		    .S_AXI_bready(blueDMA$S_AXI_bready),
		    .S_AXI_rready(blueDMA$S_AXI_rready),
		    .S_AXI_wdata(blueDMA$S_AXI_wdata),
		    .S_AXI_wstrb(blueDMA$S_AXI_wstrb),
		    .S_AXI_wvalid(blueDMA$S_AXI_wvalid),
		    .fpga_rd_arready(blueDMA$fpga_rd_arready),
		    .fpga_rd_rdata(blueDMA$fpga_rd_rdata),
1097
		    .fpga_rd_rid(blueDMA$fpga_rd_rid),
Jens Korinth's avatar
Jens Korinth committed
1098
1099
1100
1101
1102
		    .fpga_rd_rlast(blueDMA$fpga_rd_rlast),
		    .fpga_rd_rresp(blueDMA$fpga_rd_rresp),
		    .fpga_rd_ruser(blueDMA$fpga_rd_ruser),
		    .fpga_rd_rvalid(blueDMA$fpga_rd_rvalid),
		    .fpga_wr_awready(blueDMA$fpga_wr_awready),
1103
		    .fpga_wr_bid(blueDMA$fpga_wr_bid),
Jens Korinth's avatar
Jens Korinth committed
1104
1105
1106
1107
1108
1109
		    .fpga_wr_bresp(blueDMA$fpga_wr_bresp),
		    .fpga_wr_buser(blueDMA$fpga_wr_buser),
		    .fpga_wr_bvalid(blueDMA$fpga_wr_bvalid),
		    .fpga_wr_wready(blueDMA$fpga_wr_wready),
		    .pcie_rd_arready(blueDMA$pcie_rd_arready),
		    .pcie_rd_rdata(blueDMA$pcie_rd_rdata),
1110
		    .pcie_rd_rid(blueDMA$pcie_rd_rid),
Jens Korinth's avatar
Jens Korinth committed
1111
1112
1113
1114
1115
		    .pcie_rd_rlast(blueDMA$pcie_rd_rlast),
		    .pcie_rd_rresp(blueDMA$pcie_rd_rresp),
		    .pcie_rd_ruser(blueDMA$pcie_rd_ruser),
		    .pcie_rd_rvalid(blueDMA$pcie_rd_rvalid),
		    .pcie_wr_awready(blueDMA$pcie_wr_awready),
1116
		    .pcie_wr_bid(blueDMA$pcie_wr_bid),
Jens Korinth's avatar
Jens Korinth committed
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
		    .pcie_wr_bresp(blueDMA$pcie_wr_bresp),
		    .pcie_wr_buser(blueDMA$pcie_wr_buser),
		    .pcie_wr_bvalid(blueDMA$pcie_wr_bvalid),
		    .pcie_wr_wready(blueDMA$pcie_wr_wready),
		    .S_AXI_arready(blueDMA$S_AXI_arready),
		    .S_AXI_rvalid(blueDMA$S_AXI_rvalid),
		    .S_AXI_rdata(blueDMA$S_AXI_rdata),
		    .S_AXI_rresp(blueDMA$S_AXI_rresp),
		    .S_AXI_awready(blueDMA$S_AXI_awready),
		    .S_AXI_wready(blueDMA$S_AXI_wready),
		    .S_AXI_bvalid(blueDMA$S_AXI_bvalid),
		    .S_AXI_bresp(blueDMA$S_AXI_bresp),
		    .pcie_rd_arvalid(blueDMA$pcie_rd_arvalid),
1130
		    .pcie_rd_arid(blueDMA$pcie_rd_arid),
Jens Korinth's avatar
Jens Korinth committed
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
		    .pcie_rd_araddr(blueDMA$pcie_rd_araddr),
		    .pcie_rd_arlen(blueDMA$pcie_rd_arlen),
		    .pcie_rd_arsize(blueDMA$pcie_rd_arsize),
		    .pcie_rd_arburst(blueDMA$pcie_rd_arburst),
		    .pcie_rd_arlock(blueDMA$pcie_rd_arlock),
		    .pcie_rd_arcache(blueDMA$pcie_rd_arcache),
		    .pcie_rd_arprot(blueDMA$pcie_rd_arprot),
		    .pcie_rd_arqos(blueDMA$pcie_rd_arqos),
		    .pcie_rd_arregion(blueDMA$pcie_rd_arregion),
		    .pcie_rd_aruser(blueDMA$pcie_rd_aruser),
		    .pcie_rd_rready(blueDMA$pcie_rd_rready),
		    .pcie_wr_awvalid(blueDMA$pcie_wr_awvalid),
1143
		    .pcie_wr_awid(blueDMA$pcie_wr_awid),
Jens Korinth's avatar
Jens Korinth committed
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
		    .pcie_wr_awaddr(blueDMA$pcie_wr_awaddr),
		    .pcie_wr_awlen(blueDMA$pcie_wr_awlen),
		    .pcie_wr_awsize(blueDMA$pcie_wr_awsize),
		    .pcie_wr_awburst(blueDMA$pcie_wr_awburst),
		    .pcie_wr_awlock(blueDMA$pcie_wr_awlock),
		    .pcie_wr_awcache(blueDMA$pcie_wr_awcache),
		    .pcie_wr_awprot(blueDMA$pcie_wr_awprot),
		    .pcie_wr_awqos(blueDMA$pcie_wr_awqos),
		    .pcie_wr_awregion(blueDMA$pcie_wr_awregion),
		    .pcie_wr_awuser(blueDMA$pcie_wr_awuser),
		    .pcie_wr_wvalid(blueDMA$pcie_wr_wvalid),
		    .pcie_wr_wdata(blueDMA$pcie_wr_wdata),
		    .pcie_wr_wstrb(blueDMA$pcie_wr_wstrb),
		    .pcie_wr_wlast(blueDMA$pcie_wr_wlast),
		    .pcie_wr_wuser(blueDMA$pcie_wr_wuser),
		    .pcie_wr_bready(blueDMA$pcie_wr_bready),
		    .fpga_rd_arvalid(blueDMA$fpga_rd_arvalid),
1161
		    .fpga_rd_arid(blueDMA$fpga_rd_arid),
Jens Korinth's avatar
Jens Korinth committed
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
		    .fpga_rd_araddr(blueDMA$fpga_rd_araddr),
		    .fpga_rd_arlen(blueDMA$fpga_rd_arlen),
		    .fpga_rd_arsize(blueDMA$fpga_rd_arsize),
		    .fpga_rd_arburst(blueDMA$fpga_rd_arburst),
		    .fpga_rd_arlock(blueDMA$fpga_rd_arlock),
		    .fpga_rd_arcache(blueDMA$fpga_rd_arcache),
		    .fpga_rd_arprot(blueDMA$fpga_rd_arprot),
		    .fpga_rd_arqos(blueDMA$fpga_rd_arqos),
		    .fpga_rd_arregion(blueDMA$fpga_rd_arregion),
		    .fpga_rd_aruser(blueDMA$fpga_rd_aruser),
		    .fpga_rd_rready(blueDMA$fpga_rd_rready),
		    .fpga_wr_awvalid(blueDMA$fpga_wr_awvalid),
1174
		    .fpga_wr_awid(blueDMA$fpga_wr_awid),
Jens Korinth's avatar
Jens Korinth committed
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
		    .fpga_wr_awaddr(blueDMA$fpga_wr_awaddr),
		    .fpga_wr_awlen(blueDMA$fpga_wr_awlen),
		    .fpga_wr_awsize(blueDMA$fpga_wr_awsize),
		    .fpga_wr_awburst(blueDMA$fpga_wr_awburst),
		    .fpga_wr_awlock(blueDMA$fpga_wr_awlock),
		    .fpga_wr_awcache(blueDMA$fpga_wr_awcache),
		    .fpga_wr_awprot(blueDMA$fpga_wr_awprot),
		    .fpga_wr_awqos(blueDMA$fpga_wr_awqos),
		    .fpga_wr_awregion(blueDMA$fpga_wr_awregion),
		    .fpga_wr_awuser(blueDMA$fpga_wr_awuser),
		    .fpga_wr_wvalid(blueDMA$fpga_wr_wvalid),
		    .fpga_wr_wdata(blueDMA$fpga_wr_wdata),
		    .fpga_wr_wstrb(blueDMA$fpga_wr_wstrb),
		    .fpga_wr_wlast(blueDMA$fpga_wr_wlast),
		    .fpga_wr_wuser(blueDMA$fpga_wr_wuser),
		    .fpga_wr_bready(blueDMA$fpga_wr_bready),
		    .interrupt(blueDMA$interrupt));

  // submodule blueDMA
  assign blueDMA$S_AXI_araddr = S_AXI_araddr ;
  assign blueDMA$S_AXI_arprot = S_AXI_arprot ;
  assign blueDMA$S_AXI_arvalid = S_AXI_arvalid ;
  assign blueDMA$S_AXI_awaddr = S_AXI_awaddr ;
  assign blueDMA$S_AXI_awprot = S_AXI_awprot ;
  assign blueDMA$S_AXI_awvalid = S_AXI_awvalid ;
  assign blueDMA$S_AXI_bready = S_AXI_bready ;
  assign blueDMA$S_AXI_rready = S_AXI_rready ;
  assign blueDMA$S_AXI_wdata = S_AXI_wdata ;
  assign blueDMA$S_AXI_wstrb = S_AXI_wstrb ;
  assign blueDMA$S_AXI_wvalid = S_AXI_wvalid ;
  assign blueDMA$fpga_rd_arready = m32_axi_arready ;
  assign blueDMA$fpga_rd_rdata = m32_axi_rdata ;
1207
  assign blueDMA$fpga_rd_rid = m32_axi_rid ;
Jens Korinth's avatar
Jens Korinth committed
1208
1209
1210
1211
1212
  assign blueDMA$fpga_rd_rlast = m32_axi_rlast ;
  assign blueDMA$fpga_rd_rresp = m32_axi_rresp ;
  assign blueDMA$fpga_rd_ruser = m32_axi_ruser ;
  assign blueDMA$fpga_rd_rvalid = m32_axi_rvalid ;
  assign blueDMA$fpga_wr_awready = m32_axi_awready ;
1213
  assign blueDMA$fpga_wr_bid = m32_axi_bid ;
Jens Korinth's avatar
Jens Korinth committed
1214
1215
1216
1217
1218
1219
  assign blueDMA$fpga_wr_bresp = m32_axi_bresp ;
  assign blueDMA$fpga_wr_buser = m32_axi_buser ;
  assign blueDMA$fpga_wr_bvalid = m32_axi_bvalid ;
  assign blueDMA$fpga_wr_wready = m32_axi_wready ;
  assign blueDMA$pcie_rd_arready = m64_axi_arready ;
  assign blueDMA$pcie_rd_rdata = m64_axi_rdata ;
1220
  assign blueDMA$pcie_rd_rid = m64_axi_rid ;
Jens Korinth's avatar
Jens Korinth committed
1221
1222
1223
1224
1225
  assign blueDMA$pcie_rd_rlast = m64_axi_rlast ;
  assign blueDMA$pcie_rd_rresp = m64_axi_rresp ;
  assign blueDMA$pcie_rd_ruser = m64_axi_ruser ;
  assign blueDMA$pcie_rd_rvalid = m64_axi_rvalid ;
  assign blueDMA$pcie_wr_awready = m64_axi_awready ;
1226
  assign blueDMA$pcie_wr_bid = m64_axi_bid ;
Jens Korinth's avatar
Jens Korinth committed
1227
1228
1229
1230
1231
1232
  assign blueDMA$pcie_wr_bresp = m64_axi_bresp ;
  assign blueDMA$pcie_wr_buser = m64_axi_buser ;
  assign blueDMA$pcie_wr_bvalid = m64_axi_bvalid ;
  assign blueDMA$pcie_wr_wready = m64_axi_wready ;
endmodule  // mkBlueDMAVivado
For faster browsing, not all history is shown. View entire blame