Skip to content

Issue with Generating bad Statements in BTOR2 Files Using Yosys #4519

Answered by EPTansuo
EPTansuo asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks. I've solved this problem. I was able to solve this problem using the following shell script instead of the yosys script:

#!/usr/bin/bash

help(){
        echo "v2btor2-0.43 <verlog file> <top name> <output file>"
}

if [ $# -ne 3 ];
then
        help
        exit 1
fi

VSRC=$1
TOP=$2
OUT=$3

echo "read -formal ${VSRC};" \
        "prep -top ${TOP};" \
        "hierarchy -check;" \
        "chformal -assume -early;" \
        "memory -nomap;" \
        "flatten;" \
        "setundef -undriven -expose;" \
        "write_btor ${OUT};" | yosys

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EPTansuo
Comment options

Answer selected by EPTansuo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants