OpenCores
URL https://opencores.org/ocsvn/ssbcc/ssbcc/trunk

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [core/] [9x8/] [peripherals/] [tb/] [open_drain/] [run] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sinclairrf
#!/bin/bash
2
#
3
# Copyright 2012, Sinclair R.F., Inc.
4
 
5
NAME=open_drain
6
 
7
for WIDTH in 1 5 8; do
8
  sed -e "s/@WIDTH@/width=${WIDTH}/" tb_${NAME}.9x8-template > tb_${NAME}.9x8;
9
  sed -e "s/@WIDTH@/${WIDTH}/" tb.v-template > tb.v;
10
  ../../../../../ssbcc -q -P monitor_stack tb_${NAME}.9x8 || { echo "${NAME} compile failed" > /dev/stderr; exit 1; }
11
  iverilog -o tb tb.v tb_${NAME}.v || { echo "${NAME} build failed" > /dev/stderr; exit 1; }
12
  ./tb > tb_${WIDTH}.out;
13
done
14
 
15
T="`md5sum -c md5sums 2>&1 | sed '/: OK$/d'`";
16
if [ -n "${T}" ]; then
17
  echo "${NAME} failed" > /dev/stderr;
18
  exit 1;
19
fi
20
 
21
echo "Passed:  ${NAME}";
22
exit 0;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.