mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-14 01:46:16 +00:00
Formatting
This commit is contained in:
parent
8369792e03
commit
cddfd1f12a
1 changed files with 3 additions and 3 deletions
|
@ -33,8 +33,8 @@ FstData::FstData(std::string filename) : ctx(nullptr)
|
||||||
{
|
{
|
||||||
#if !defined(YOSYS_DISABLE_SPAWN)
|
#if !defined(YOSYS_DISABLE_SPAWN)
|
||||||
std::string filename_trim = file_base_name(filename);
|
std::string filename_trim = file_base_name(filename);
|
||||||
if (filename_trim.size() > 4 && filename_trim.compare(filename_trim.size() - 4, std::string::npos, ".vcd") == 0) {
|
if (filename_trim.size() > 4 && filename_trim.compare(filename_trim.size()-4, std::string::npos, ".vcd") == 0) {
|
||||||
filename_trim.erase(filename_trim.size() - 4);
|
filename_trim.erase(filename_trim.size()-4);
|
||||||
std::string template_name = get_base_tmpdir() + "/converted_XXXXXX";
|
std::string template_name = get_base_tmpdir() + "/converted_XXXXXX";
|
||||||
char *tmp = strdup(template_name.c_str());
|
char *tmp = strdup(template_name.c_str());
|
||||||
int fd = mkstemp(tmp);
|
int fd = mkstemp(tmp);
|
||||||
|
@ -50,7 +50,7 @@ FstData::FstData(std::string filename) : ctx(nullptr)
|
||||||
log_cmd_error("Shell command failed!\n");
|
log_cmd_error("Shell command failed!\n");
|
||||||
filename = tmp_file;
|
filename = tmp_file;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
const std::vector<std::string> g_units = { "s", "ms", "us", "ns", "ps", "fs", "as", "zs" };
|
const std::vector<std::string> g_units = { "s", "ms", "us", "ns", "ps", "fs", "as", "zs" };
|
||||||
ctx = (fstReaderContext *)fstReaderOpen(filename.c_str());
|
ctx = (fstReaderContext *)fstReaderOpen(filename.c_str());
|
||||||
if (!ctx)
|
if (!ctx)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue