|
发表于 2023-6-28 21:58:39
|
显示全部楼层
楼主您好,我在进行floorplan时也遇到类似的情况,我在代码里添加了一个顶层模块把所有的输入输出都与例化后的pad相连然后重新进行综合,但为什么在floorplan时pad和pin还是不能对应上,得分别摆放
这是我例化的部分代码,使用generate for
module my_design(
input pad_clock ,
input pad_reset ,
input pad_io_master_awready,
input pad_io_master_wready ,
input pad_io_master_rvalid ,
input pad_io_master_rlast ,
input pad_io_master_bvalid ,
input pad_io_master_arready,
input [3:0] pad_io_master_bid ,
input [1:0] pad_io_master_bresp ,
input [3:0] pad_io_master_rid ,
input [1:0] pad_io_master_rresp ,
input [63:0] pad_io_master_rdata ,
output pad_io_master_wvalid ,
output pad_io_master_wlast ,
output pad_io_master_bready ,
output pad_io_master_arvalid,
output pad_io_master_awvalid,
output pad_io_master_rready ,
output [63:0] pad_io_master_wdata ,
output [7:0] pad_io_master_wstrb ,
output [3:0] pad_io_master_arid ,
output [31:0] pad_io_master_araddr ,
output [31:0] pad_io_master_awaddr ,
output [7:0] pad_io_master_arlen ,
output [2:0] pad_io_master_arsize ,
output [1:0] pad_io_master_arburst,
output [3:0] pad_io_master_awid ,
output [7:0] pad_io_master_awlen ,
output [2:0] pad_io_master_awsize ,
output [1:0] pad_io_master_awburst
);
wire clock ;
wire reset ;
wire io_master_awready;
wire io_master_wready ;
wire io_master_rvalid ;
wire [3:0] io_master_bid ;
wire [1:0] io_master_bresp ;
wire [3:0] io_master_rid ;
wire [1:0] io_master_rresp ;
wire [63:0] io_master_rdata ;
wire io_master_rlast ;
wire io_master_bvalid ;
wire io_master_arready;
wire io_master_wvalid ;
wire [63:0] io_master_wdata ;
wire [7:0] io_master_wstrb ;
wire io_master_wlast ;
wire io_master_bready ;
wire io_master_rready ;
wire io_master_arvalid;
wire [3:0] io_master_arid ;
wire [31:0] io_master_araddr ;
wire [31:0] io_master_awaddr ;
wire [7:0] io_master_arlen ;
wire [2:0] io_master_arsize ;
wire [1:0] io_master_arburst;
wire io_master_awvalid;
wire [3:0] io_master_awid ;
wire [7:0] io_master_awlen ;
wire [2:0] io_master_awsize ;
wire [1:0] io_master_awburst;
genvar i;
generate
for (i = 0; i < 4; i = i + 1) begin
PI PI7(pad_io_master_bid,io_master_bid);
end
endgenerate
generate
for (i = 0; i < 2; i = i + 1) begin
PI PI8(pad_io_master_bresp,io_master_bresp);
end
endgenerate
generate
for (i = 0; i < 4; i = i + 1) begin
PI PI9(pad_io_master_rid, io_master_rid);
end
endgenerate
以及floorplan
C:\Users\liuzeqi\Desktop\floorplan.png |
-
|