Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 17 lines (14 sloc) 0.335 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#! /bin/bash

BASE=`pwd`/`dirname $0`

cp $1 $BASE/hw/sim/mem_main.dat
cd $BASE/hw/sim
./sim.sh -nox |
if [ x"$2" = x"RAW" ]; then
    # raw output
cat
else
    # filtered output with timeout
$BASE/timeout3 -t 300 awk '
/^# LINE .*/ { print substr($0, index($0, $3)) }
/^# EXIT -?[0-9]+$/ { exit strtonum($3) }'
fi
Something went wrong with that request. Please try again.