`undef INIT_UPPER\r
.LOC("UNPLACED"),\r
.CAS("UPPER"),\r
- .A_RD_WIDTH(CFG_DBITS), .B_RD_WIDTH(0),\r
+ .A_RD_WIDTH(0), .B_RD_WIDTH(CFG_DBITS),\r
.A_WR_WIDTH(CFG_DBITS), .B_WR_WIDTH(0),\r
.RAM_MODE("TDP"),\r
.A_WR_MODE("NO_CHANGE"), .B_WR_MODE("NO_CHANGE"),\r
) upper_cell (\r
.A_CI(A_CAS),\r
.B_CI(B_CAS),\r
- .A_DO(B1DATA),\r
- .B_DO(A_UP_DO),\r
+ .A_DO(A_UP_DO),\r
+ .B_DO(B1DATA),\r
.A_ECC_1B_ERR(A_ECC_1B_ERR),\r
.B_ECC_1B_ERR(B_ECC_1B_ERR),\r
.A_ECC_2B_ERR(A_ECC_2B_ERR),\r
`undef INIT_LOWER\r
.LOC("UNPLACED"),\r
.CAS("LOWER"),\r
- .A_RD_WIDTH(CFG_DBITS), .B_RD_WIDTH(0),\r
+ .A_RD_WIDTH(0), .B_RD_WIDTH(CFG_DBITS),\r
.A_WR_WIDTH(CFG_DBITS), .B_WR_WIDTH(0),\r
.RAM_MODE("TDP"),\r
.A_WR_MODE("NO_CHANGE"), .B_WR_MODE("NO_CHANGE"),\r
$display("ERROR: Port B width of 80 bits is only supported in SDP mode.");\r
$finish();\r
end\r
- if (((CAS == "UPPER") || (CAS == "LOWER")) && (WIDTH_MODE_A > 1)) begin\r
- $display("ERROR: Port A cascade mode only supported in 1 bit mode.");\r
- $finish();\r
- end\r
- if (((CAS == "UPPER") || (CAS == "LOWER")) && (WIDTH_MODE_B > 1)) begin\r
- $display("ERROR: Port B cascade mode only supported in 1 bit mode.");\r
- $finish();\r
- end\r
if ((WIDTH_MODE_A != 80) && (WIDTH_MODE_A != 40) && (WIDTH_MODE_A != 20) && (WIDTH_MODE_A != 10) &&\r
(WIDTH_MODE_A != 5) && (WIDTH_MODE_A != 2) && (WIDTH_MODE_A != 1) && (WIDTH_MODE_A != 0)) begin\r
$display("ERROR: Illegal %s Port A width configuration %d.", RAM_MODE, WIDTH_MODE_A);\r