Compare commits

..

No commits in common. "3ed1cd9131559085f492cc9663e7fa8c0b4c6dd7" and "fb9787d45fe5d3f16917dd96605e6ea9b88370e1" have entirely different histories.

3 changed files with 11 additions and 12 deletions

View File

@ -57,9 +57,9 @@ namespace tmpl {
delayprog<N_dly_cfg> dly(.in = in.r, .out = _req, .s = dly_cfg, .supply = supply);
// sig buff the reset signal
bool _reset_BX, _reset_BXX[N*2];
bool _reset_BX, _reset_BXX[N];
BUF_X4 reset_buf(.a=reset_B, .y=_reset_BX,.vdd=supply.vdd,.vss=supply.vss);
sigbuf<N*2> reset_bufarray(.in=_reset_BX, .out=_reset_BXX, .supply=supply);
sigbuf<N> reset_bufarray(.in=_reset_BX, .out=_reset_BXX, .supply=supply);
// sig buff the req
bool _reqX, _reqXX[N*2];
@ -128,8 +128,8 @@ namespace tmpl {
t_buf_func[i].vss=supply.vss;
t_buf_func[i].pr_B = _reset_BXX[i];
t_buf_func[i].sr_B = _reset_BXX[i];
f_buf_func[i].pr_B = _reset_BXX[i+N];
f_buf_func[i].sr_B = _reset_BXX[i+N];
f_buf_func[i].pr_B = _reset_BXX[i];
f_buf_func[i].sr_B = _reset_BXX[i];
)
}

View File

@ -501,12 +501,11 @@ namespace tmpl {
AND2_X1 and2(.a = _drop, .b = _in_vX, .vss = supply.vss, .vdd = supply.vdd);
OR2_X1 or2(.a = out.a, .b = and2.y, .vss = supply.vss, .vdd = supply.vdd);
A_2C_B_X1 ack_Cel(.c1 = or2.y, .c2 = _in_vX, .y = in.a);
// _in_vX = in.v;
_in_vX = in.v;
// Sigbufs
sigbuf<N*2> sb_dropB(.in = _dropB, .supply = supply);
sigbuf<N*2+1> sb_in_v(.in = _in_vX, .supply = supply);
sb_in_v.out[2*N] = in.v;
sigbuf<N*2> sb_in_v(.in = _in_vX, .supply = supply);
AND3_X1 and_t[N];
AND3_X1 and_f[N];

View File

@ -29,7 +29,7 @@ run_test () {
cat $1/run/prsim.in | prsim -r $1/run/test.prs > $1/run/prsim.out
if egrep '(WRONG|WARNING|Node)' $1/run/prsim.out >/dev/null; then
echo "${bold}*** simulation failed seed: $2 ***${normal}"
faildirs="${faildirs} ${1}-sim($2)"
faildirs="${faildirs} ${1}-sim"
failed=1
echo
fi
@ -56,9 +56,9 @@ cd "unit_tests"
# run all test except single one is specified
if [ ! -z $3 ]; then
numberofruns=$2+$3
iteration=$3
fi
if [ ! -z $2 ]; then
elif [ ! -z $2 ]; then
numberofruns=$2
fi
@ -66,7 +66,7 @@ if [ -z $1 ]; then
for i in *
do
if [ -d $i -a -f $i/test.act ]; then
while [ $iteration -lt $numberofruns ]
while [ $failed = 0 ] && [ $iteration -lt $numberofruns ]
do
run_test $iteration
iteration=$iteration+1
@ -74,7 +74,7 @@ if [ -z $1 ]; then
fi
done
else
while [ $iteration -lt $numberofruns ]
while [ $failed -eq 0 ] && [ $iteration -lt $numberofruns ]
do
run_test $1 $iteration
iteration=$((iteration+1))