General Description: When compiling a design with 5 or more functional_block statements, ABL2EDIF fails with the error "can't find x.bl0 file".
解决方案
This is an issue with the subprogram BLIF2EQN, which translates BLIF (Berkeley Logic Interchange Format) files into logical equations for the report. BLIF2EQN can only handle up to four hierarchical functional_blocks.
There are a couple workarounds:
1) Re-Write the code with 4 or fewer functional_block statements. 2) Create a batch file that omits the call to BLIF2EQN. One can do this by compiling a design with fewer than 4 functional block statements, then editing the abl2edif.log file and deleting everything but the program calls, excluding those program calls to BLIF2EQN. One can then run the batch file from a DOS prompt.
An example batch file is shown below: In this example the top level Abel file, test, contains five functional_blocks, sub1 through sub5. Note that ahdl2blf and blifopt need to be run only once for each lower level .abl file even if the file is used multiple times in the top level file. ================================================================= ahdl2blf test.abl -mod test -ojhd compile -err P0.err