2015-01-04 07:23:30 -06:00
|
|
|
module \$__XILINX_RAMB36_SDP72 (CLK2, CLK3, A1ADDR, A1DATA, B1ADDR, B1DATA, B1EN);
|
|
|
|
parameter TRANSP2 = 1;
|
|
|
|
parameter CLKPOL2 = 1;
|
|
|
|
parameter CLKPOL3 = 1;
|
|
|
|
|
|
|
|
input CLK2;
|
|
|
|
input CLK3;
|
|
|
|
|
|
|
|
input [8:0] A1ADDR;
|
|
|
|
output [71:0] A1DATA;
|
|
|
|
|
|
|
|
input [8:0] B1ADDR;
|
|
|
|
input [71:0] B1DATA;
|
|
|
|
input [7:0] B1EN;
|
|
|
|
|
|
|
|
wire [15:0] A1ADDR_16 = A1ADDR;
|
|
|
|
wire [15:0] B1ADDR_16 = B1ADDR;
|
|
|
|
|
|
|
|
wire [7:0] DIP, DOP;
|
|
|
|
wire [63:0] DI, DO;
|
|
|
|
|
|
|
|
assign A1DATA = { DOP[7], DO[63:56], DOP[6], DO[55:48], DOP[5], DO[47:40], DOP[4], DO[39:32],
|
|
|
|
DOP[3], DO[31:24], DOP[2], DO[23:16], DOP[1], DO[15: 8], DOP[0], DO[ 7: 0] };
|
|
|
|
|
|
|
|
assign { DIP[7], DI[63:56], DIP[6], DI[55:48], DIP[5], DI[47:40], DIP[4], DI[39:32],
|
|
|
|
DIP[3], DI[31:24], DIP[2], DI[23:16], DIP[1], DI[15: 8], DIP[0], DI[ 7: 0] } = B1DATA;
|
|
|
|
|
|
|
|
RAMB36E1 #(
|
|
|
|
.RAM_MODE("SDP"),
|
|
|
|
.READ_WIDTH_A(72),
|
|
|
|
.WRITE_WIDTH_B(72),
|
2015-01-05 06:59:04 -06:00
|
|
|
.WRITE_MODE_A(TRANSP2 ? "WRITE_FIRST" : "READ_FIRST"),
|
2015-01-04 07:23:30 -06:00
|
|
|
.WRITE_MODE_B(TRANSP2 ? "WRITE_FIRST" : "READ_FIRST")
|
|
|
|
) _TECHMAP_REPLACE_ (
|
|
|
|
.DOBDO(DO[63:32]),
|
|
|
|
.DOADO(DO[31:0]),
|
|
|
|
.DOPBDOP(DOP[7:4]),
|
|
|
|
.DOPADOP(DOP[3:0]),
|
|
|
|
.DIBDI(DI[63:32]),
|
|
|
|
.DIADI(DI[31:0]),
|
|
|
|
.DIPBDIP(DIP[7:4]),
|
|
|
|
.DIPADIP(DIP[3:0]),
|
|
|
|
|
|
|
|
.ADDRARDADDR(A1ADDR_16),
|
2015-01-05 06:59:04 -06:00
|
|
|
.CLKARDCLK(CLKPOL2 ? CLK2 : ~CLK2),
|
2015-01-04 07:23:30 -06:00
|
|
|
.ENARDEN(|1),
|
|
|
|
.REGCEAREGCE(|1),
|
|
|
|
.RSTRAMARSTRAM(|0),
|
|
|
|
.RSTREGARSTREG(|0),
|
|
|
|
.WEA(4'b0),
|
|
|
|
|
|
|
|
.ADDRBWRADDR(B1ADDR_16),
|
2015-01-05 06:59:04 -06:00
|
|
|
.CLKBWRCLK(CLKPOL3 ? CLK3 : ~CLK3),
|
2015-01-04 07:23:30 -06:00
|
|
|
.ENBWREN(|1),
|
|
|
|
.REGCEB(|0),
|
|
|
|
.RSTRAMB(|0),
|
|
|
|
.RSTREGB(|0),
|
|
|
|
.WEBWE(B1EN)
|
|
|
|
);
|
|
|
|
endmodule
|