24 #include "../../../Common/str.h"
30 int deviceID = getDeviceByIDCODE(IDCODE);
32 throw runtime_error(
string(
"Unknown device with IDCODE = ").append(
to_string(IDCODE)).append(
" . Maybe the device is not Xilinx UltraScale device?"));
38 int deviceID = getDeviceByName(name);
40 throw runtime_error(
string(
"Unknown device: ").append(name).append(
". Maybe the device is not Xilinx UltraScale device?"));
45 setDeviceByNameOrThrow(partName);
49 int deviceID = getDeviceByNameOrThrow(name);
50 setDevice(deviceID, name);
54 int deviceID = getDeviceByIDCODEorThrow(idcode);
145 bool customNameSet =
false;
146 #define setCustomPartName(x) {customNameSet = true; partName = x;}
196 default:
throw runtime_error(
"Unknown device ID.");
198 #undef setCustomPartName
200 if(customPartName !=
"")
201 partName = customPartName;
204 log(
"Initialized device resource string for \"" + initializedResourceStringShortPartName +
"\"");
209 if(initializedResourceStringShortPartName ==
"") {
210 cout <<
"A list of currently supported Xilinx UltraScale devices: " << endl;
212 cout <<
" UltraScale Kintex: " << endl;
213 cout <<
" XCKU025, XCKU035, XCKU040, XQKU040, XCKU060, XQKU060, XQRKU060, XCKU085, XCKU095, XQKU095, XCKU115, XQKU0115" << endl;
216 cout <<
" UltraScale Virtex: " << endl;
217 cout <<
" XCVU065, XCVU080, XCVU095, XCVU125, XCVU160, XCVU190, XCVU440" << endl;
int getDeviceByIDCODEorThrow(int) override
void setDevice(int, std::string="") override
void setDeviceByNameOrThrow(std::string) override
void setDeviceByPartNameOrThrow() override
int getDeviceByName(std::string) override
void setDeviceByIDCODEOrThrow(int) override
int getDeviceByNameOrThrow(std::string) override
int getDeviceByIDCODE(int) override
void clearResourceStringArrays()
void printResourceStringInfo()
std::string to_string(Endianness e)
bool stringContains(std::string checkedString)
Returns false. End of recursion for template.
std::string stringToLower(std::string str)
Replaces all uppercase characters in str with lowercase and returns the resulting string.
std::string removeSpaces(std::string str)
Removes all space chars of str returns the resulting string.