2022-10-20 22:46:17 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "common/common.h"
|
|
|
|
|
|
|
|
|
|
namespace db {
|
|
|
|
|
|
|
|
|
|
class Setting {
|
|
|
|
|
public:
|
|
|
|
|
// 1. SystemSetting
|
|
|
|
|
int numThreads = 1;
|
|
|
|
|
|
|
|
|
|
// 2. DBSetting
|
|
|
|
|
bool EdgeSpacing = true;
|
|
|
|
|
bool EnableFence = true;
|
|
|
|
|
bool EnablePG = true;
|
|
|
|
|
bool EnableIOPin = true;
|
|
|
|
|
bool liteMode = true;
|
|
|
|
|
bool random_place = false;
|
|
|
|
|
|
|
|
|
|
// 3. IOSetting
|
|
|
|
|
std::string Format = "";
|
|
|
|
|
|
|
|
|
|
std::string BookshelfVariety = "";
|
|
|
|
|
std::string BookshelfAux = "";
|
|
|
|
|
std::string BookshelfPl = "";
|
|
|
|
|
|
|
|
|
|
std::string DefFile = "";
|
|
|
|
|
std::string LefFile = "";
|
|
|
|
|
std::string LefCell = "";
|
|
|
|
|
std::string LefTech = "";
|
2024-04-18 12:56:30 +08:00
|
|
|
std::vector<std::string> LefFiles;
|
2022-10-20 22:46:17 +08:00
|
|
|
|
|
|
|
|
std::string Constraints = "";
|
|
|
|
|
std::string Verilog = "";
|
|
|
|
|
std::string Size = "";
|
|
|
|
|
|
|
|
|
|
std::string OutputFile = "";
|
|
|
|
|
|
|
|
|
|
void reset();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern Setting setting;
|
|
|
|
|
} // namespace db
|