Setup row polarity (single row cells at the moment)

This commit is contained in:
Gabriel Gouvine 2023-06-03 12:41:11 +02:00
parent 585489860e
commit acf6cfe041
1 changed files with 4 additions and 1 deletions

View File

@ -200,7 +200,7 @@ namespace {
break; break;
*/ */
default: default:
throw Error("Unsupported orientation"); throw Error("Unsupported orientation " + toString(orientation));
} }
return Transformation( tx, ty, orient ); return Transformation( tx, ty, orient );
} }
@ -829,6 +829,7 @@ namespace Etesian {
vector<int> cellHeight( instancesNb+1 ); vector<int> cellHeight( instancesNb+1 );
vector<bool> cellIsFixed( instancesNb+1 ); vector<bool> cellIsFixed( instancesNb+1 );
vector<bool> cellIsObstruction( instancesNb+1 ); vector<bool> cellIsObstruction( instancesNb+1 );
vector<coloquinte::CellRowPolarity> cellRowPolarity( instancesNb+1, coloquinte::CellRowPolarity::SAME );
cmess1 << ::Dots::asUInt( " - Number of instances ", instancesNb ) << endl; cmess1 << ::Dots::asUInt( " - Number of instances ", instancesNb ) << endl;
if (instancesNb) { if (instancesNb) {
@ -1007,10 +1008,12 @@ namespace Etesian {
} }
_circuit->setCellX(cellX); _circuit->setCellX(cellX);
_circuit->setCellY(cellY); _circuit->setCellY(cellY);
_circuit->setCellOrientation(orient);
_circuit->setCellWidth(cellWidth); _circuit->setCellWidth(cellWidth);
_circuit->setCellHeight(cellHeight); _circuit->setCellHeight(cellHeight);
_circuit->setCellIsFixed(cellIsFixed); _circuit->setCellIsFixed(cellIsFixed);
_circuit->setCellIsObstruction(cellIsObstruction); _circuit->setCellIsObstruction(cellIsObstruction);
_circuit->setCellRowPolarity(cellRowPolarity);
cmess1 << " - Converting " << netsNb << " nets" << endl; cmess1 << " - Converting " << netsNb << " nets" << endl;