Skip to content

Commit e0d3c08

Browse files
Merge pull request #759 from os-fpga/dsp_packer_conn_checker
DSP connectivity hard rule checking
2 parents ad12e74 + a01df12 commit e0d3c08

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

include/eblif_tranform/blifparse.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void blif_parse_filename(const char* filename, Callback& callback) {
4545
fstr.open(filename);
4646
std::stringstream ss;
4747
// Call transform function
48-
tranformer.rs_transform_eblif(fstr, ss);
48+
bool status = tranformer.rs_transform_eblif(fstr, ss);
4949
std::string data = ss.str();
5050
const char* value = std::getenv("PRINT_TRANSFORMED_EBLIF_FILE");
5151
if (value) {
@@ -54,7 +54,9 @@ void blif_parse_filename(const char* filename, Callback& callback) {
5454
inner_ofs << data;
5555
inner_ofs.close();
5656
}
57-
57+
if (status == false) {
58+
exit (1);
59+
}
5860
FILE* infile = fmemopen((void*)data.c_str(), data.size(), "r");
5961

6062
if (infile != NULL) {

0 commit comments

Comments
 (0)