mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-18 20:03:39 +00:00
Stub for binary AIGER
This commit is contained in:
parent
40db2f2eb6
commit
791f93181d
1 changed files with 8 additions and 3 deletions
|
@ -31,6 +31,7 @@ YOSYS_NAMESPACE_BEGIN
|
||||||
#define log_debug log
|
#define log_debug log
|
||||||
|
|
||||||
static void parse_aiger_ascii(RTLIL::Design *design, std::istream &f, std::string clk_name);
|
static void parse_aiger_ascii(RTLIL::Design *design, std::istream &f, std::string clk_name);
|
||||||
|
static void parse_aiger_binary(RTLIL::Design *design, std::istream &f, std::string clk_name);
|
||||||
|
|
||||||
void parse_aiger(RTLIL::Design *design, std::istream &f, std::string clk_name)
|
void parse_aiger(RTLIL::Design *design, std::istream &f, std::string clk_name)
|
||||||
{
|
{
|
||||||
|
@ -38,10 +39,10 @@ void parse_aiger(RTLIL::Design *design, std::istream &f, std::string clk_name)
|
||||||
f >> header;
|
f >> header;
|
||||||
if (header == "aag")
|
if (header == "aag")
|
||||||
return parse_aiger_ascii(design, f, clk_name);
|
return parse_aiger_ascii(design, f, clk_name);
|
||||||
else {
|
else if (header == "aig")
|
||||||
|
return parse_aiger_binary(design, f, clk_name);
|
||||||
|
else
|
||||||
log_error("Unsupported AIGER file!\n");
|
log_error("Unsupported AIGER file!\n");
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void parse_aiger_ascii(RTLIL::Design *design, std::istream &f, std::string clk_name)
|
static void parse_aiger_ascii(RTLIL::Design *design, std::istream &f, std::string clk_name)
|
||||||
|
@ -191,6 +192,10 @@ static void parse_aiger_ascii(RTLIL::Design *design, std::istream &f, std::strin
|
||||||
module->fixup_ports();
|
module->fixup_ports();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void parse_aiger_binary(RTLIL::Design *design, std::istream &f, std::string clk_name)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
struct AigerFrontend : public Frontend {
|
struct AigerFrontend : public Frontend {
|
||||||
AigerFrontend() : Frontend("aiger", "read AIGER file") { }
|
AigerFrontend() : Frontend("aiger", "read AIGER file") { }
|
||||||
void help() YS_OVERRIDE
|
void help() YS_OVERRIDE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue