diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2019-02-19 10:24:55 -0800 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2019-02-19 10:24:55 -0800 |
commit | 0b1fc46ae380302f8082f49d1517645008b041df (patch) | |
tree | 5dc0a02ebae7310be27d5aa032da615945baf57f | |
parent | 54f719f4463a12e24efeda5b45319b9ccf98ef03 (diff) | |
download | yosys-0b1fc46ae380302f8082f49d1517645008b041df.tar.gz yosys-0b1fc46ae380302f8082f49d1517645008b041df.tar.bz2 yosys-0b1fc46ae380302f8082f49d1517645008b041df.zip |
Add comment
-rw-r--r-- | frontends/aiger/aigerparse.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc index ef25b318c..a9c763339 100644 --- a/frontends/aiger/aigerparse.cc +++ b/frontends/aiger/aigerparse.cc @@ -32,7 +32,7 @@ YOSYS_NAMESPACE_BEGIN -#define log_debug log +//#define log_debug log #define log_debug(...) ; AigerReader::AigerReader(RTLIL::Design *design, std::istream &f, RTLIL::IdString module_name, RTLIL::IdString clk_name, std::string map_filename, bool wideports) @@ -209,6 +209,7 @@ static uint32_t parse_xaiger_literal(std::istream &f) f.read(reinterpret_cast<char*>(&l), sizeof(l)); if (f.gcount() != sizeof(l)) log_error("Offset %ld: unable to read literal!\n", static_cast<int64_t>(f.tellg())); + // TODO: Don't assume we're on little endian #ifdef _WIN32 return _byteswap_ulong(l); #else |