Xplace_for_ICCAD/cpp_to_py/common/db/Layer.cpp

17 lines
326 B
C++
Raw Normal View History

2022-10-20 22:46:17 +08:00
#include "Database.h"
using namespace db;
/***** Track *****/
char Track::macro() const {
switch (direction) {
case 'h':
return 'Y';
case 'v':
return 'X';
default:
2023-04-06 13:34:26 +08:00
logger.error("track direction not recognized: %c", direction);
2022-10-20 22:46:17 +08:00
return '\0';
}
}