mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-18 10:30:45 +00:00
Fixed abc eeror handling
This commit is contained in:
parent
3b8ebd694d
commit
52914c2e68
1 changed files with 2 additions and 2 deletions
|
@ -356,7 +356,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
|
||||||
|
|
||||||
if (asprintf(&p, "%s/input.v", tempdir_name) < 0) abort();
|
if (asprintf(&p, "%s/input.v", tempdir_name) < 0) abort();
|
||||||
FILE *f = fopen(p, "wt");
|
FILE *f = fopen(p, "wt");
|
||||||
if (f == NULL);
|
if (f == NULL)
|
||||||
log_error("Opening %s for writing failed: %s\n", p, strerror(errno));
|
log_error("Opening %s for writing failed: %s\n", p, strerror(errno));
|
||||||
free(p);
|
free(p);
|
||||||
|
|
||||||
|
@ -420,7 +420,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
|
||||||
|
|
||||||
if (asprintf(&p, "%s/stdcells.genlib", tempdir_name) < 0) abort();
|
if (asprintf(&p, "%s/stdcells.genlib", tempdir_name) < 0) abort();
|
||||||
f = fopen(p, "wt");
|
f = fopen(p, "wt");
|
||||||
if (f == NULL);
|
if (f == NULL)
|
||||||
log_error("Opening %s for writing failed: %s\n", p, strerror(errno));
|
log_error("Opening %s for writing failed: %s\n", p, strerror(errno));
|
||||||
fprintf(f, "GATE ZERO 1 Y=CONST0;\n");
|
fprintf(f, "GATE ZERO 1 Y=CONST0;\n");
|
||||||
fprintf(f, "GATE ONE 1 Y=CONST1;\n");
|
fprintf(f, "GATE ONE 1 Y=CONST1;\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue