Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
7aa19ccf2This file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/bash
set -euf -o pipefail
# Location to the directory that contains harness.fil
dir="$1"
# Extra arguments to pass to filament
args="${2:-}"
# Directory that contains this script
script_dir="${BASH_SOURCE%/*}"
# Data file
data=$"$dir/rand.json"
# Input fields file
infields=$"$dir/params/in"
# Width file
width=$"$dir/params/width"
# Dtype file
dtype=$"$dir/params/dtype"
# Bound file
bound=$"$dir/params/bound"
# Count file
count=$"$dir/params/count"
./"$script_dir/gen_float.py" gen --width $(cat $width) --fields $(cat $infields) --dt $(cat $dtype) --bound $(cat $bound) --count $(cat $count) > "$data"
./"$script_dir/check.sh" $dir rand "$args" && rm -f "$data"