mirror of https://github.com/openXC7/prjxray.git
Merge pull request #656 from antmicro/segmatch-warning
segmatch.cpp: if f_in does not exits returns -1
This commit is contained in:
commit
01a1289bcf
|
|
@ -4,10 +4,10 @@ SPECIMENS := $(addprefix build/specimen_,$(shell seq -f '%03.0f' $(N)))
|
||||||
SPECIMENS_OK := $(addsuffix /OK,$(SPECIMENS))
|
SPECIMENS_OK := $(addsuffix /OK,$(SPECIMENS))
|
||||||
|
|
||||||
database: $(SPECIMENS_OK)
|
database: $(SPECIMENS_OK)
|
||||||
${XRAY_SEGMATCH} -o build/segbits_hclk_l.db $(addsuffix /segdata_hclk_l_design_*.txt,$(SPECIMENS))
|
${XRAY_SEGMATCH} -o build/segbits_hclk_l.db $(shell find . -name segdata_hclk_l_design_*.txt)
|
||||||
${XRAY_SEGMATCH} -o build/segbits_hclk_r.db $(addsuffix /segdata_hclk_r_design_*.txt,$(SPECIMENS))
|
${XRAY_SEGMATCH} -o build/segbits_hclk_r.db $(shell find . -name segdata_hclk_r_design_*.txt)
|
||||||
${XRAY_MASKMERGE} build/mask_hclk_l.db $(addsuffix /segdata_hclk_l_design_*.txt,$(SPECIMENS))
|
${XRAY_MASKMERGE} build/mask_hclk_l.db $(shell find . -name segdata_hclk_l_design_*.txt)
|
||||||
${XRAY_MASKMERGE} build/mask_hclk_r.db $(addsuffix /segdata_hclk_r_design_*.txt,$(SPECIMENS))
|
${XRAY_MASKMERGE} build/mask_hclk_r.db $(shell find . -name segdata_hclk_r_design_*.txt)
|
||||||
grep CK_INOUT build/segbits_hclk_l.db | sed 's, .*, always,' > build/ppips_hclk_l.txt
|
grep CK_INOUT build/segbits_hclk_l.db | sed 's, .*, always,' > build/ppips_hclk_l.txt
|
||||||
grep CK_INOUT build/segbits_hclk_r.db | sed 's, .*, always,' > build/ppips_hclk_r.txt
|
grep CK_INOUT build/segbits_hclk_r.db | sed 's, .*, always,' > build/ppips_hclk_r.txt
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -238,7 +238,8 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
// Check if input file exists.
|
// Check if input file exists.
|
||||||
if (!f.good()) {
|
if (!f.good()) {
|
||||||
printf("WARNING: Input file does not exist!\n");
|
printf("ERROR: Input file does not exist!\n");
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(!f.fail());
|
assert(!f.fail());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue