aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/filter_icarus.sh
blob: 6c9910ac181ea975e4dd09894d3074058280236d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

base=$(dirname $1)

current1=$(find ${base} -maxdepth 1 -mindepth 1 -name 'reduce_sim_yosys_0_8.v')
current2=$(find ${base} -maxdepth 1 -mindepth 1 -name 'reduce_sim_yosys_0_9.v')
current3=$(find ${base} -maxdepth 1 -mindepth 1 -name 'reduce_sim_yosys_master.v')
current4=$(find ${base} -maxdepth 1 -mindepth 1 -name 'reduce_equiv_yosys_master.v')
current5=$(find ${base} -maxdepth 1 -mindepth 1 -name 'reduce_equiv_yosys_0_8.v')
current6=$(find ${base} -maxdepth 1 -mindepth 1 -name 'reduce_equiv_yosys_0_9.v')

if [[ $current1 != "" ]] && [[ $current2 != "" ]] && [[ $current3 != "" ]] &&
   [[ $current4 = "" ]] && [[ $current4 = "" ]] && [[ $current5 = "" ]]; then
  echo $base
fi