Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Travis build #116

Merged
merged 2 commits into from May 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions .travis.yml
@@ -1,6 +1,6 @@
sudo: required
dist: trusty
script: make ICEBOX=/usr/share/fpga-icestorm/chipdb test
script: make test
language: cpp
addons:
apt:
Expand All @@ -15,7 +15,11 @@ addons:
before_install:
- sudo add-apt-repository -y ppa:saltmakrell/ppa
- sudo apt-get -y update
- sudo apt-get -y install yosys fpga-icestorm
- sudo apt-get -y install yosys
- git clone https://github.com/cliffordwolf/icestorm /tmp/icestorm
- pushd /tmp/icestorm
- make -j2 && sudo make install
- popd
os: linux
compiler:
- gcc
Expand Down
6 changes: 3 additions & 3 deletions tests/combinatorial/generate.py
Expand Up @@ -31,7 +31,7 @@ def random_term(variables):
return term

for idx in range(25):
with file('temp/uut_%05d.v' % idx, 'w') as f:
with open('temp/uut_%05d.v' % idx, 'w') as f:
with redirect_stdout(f):
pins = 96

Expand Down Expand Up @@ -88,15 +88,15 @@ def random_term(variables):
print(' assign o%d = %s;' % (i, term))

print('endmodule')
with file('temp/uut_%05d.ys' % idx, 'w') as f:
with open('temp/uut_%05d.ys' % idx, 'w') as f:
with redirect_stdout(f):
print('rename uut_%05d gate' % idx)
print('read_verilog temp/uut_%05d.v' % idx)
print('rename uut_%05d gold' % idx)
print('hierarchy; proc;;')
print('miter -equiv -flatten -ignore_gold_x -make_outputs -make_outcmp gold gate miter')
print('sat -verify-no-timeout -timeout 20 -prove trigger 0 -show-inputs -show-outputs miter')
with file('temp/uut_%05d_pp.ys' % idx, 'w') as f:
with open('temp/uut_%05d_pp.ys' % idx, 'w') as f:
with redirect_stdout(f):
print('rename uut_%05d gate' % idx)
print('read_verilog temp/uut_%05d.v' % idx)
Expand Down
6 changes: 3 additions & 3 deletions tests/fsm/generate.py
Expand Up @@ -45,7 +45,7 @@ def random_expr(variables):
raise AssertionError

for idx in range(25):
with file('temp/uut_%05d.v' % idx, 'w') as f:
with open('temp/uut_%05d.v' % idx, 'w') as f:
with redirect_stdout(f):
rst2 = random.choice([False, True])
if rst2:
Expand Down Expand Up @@ -125,15 +125,15 @@ def random_expr(variables):
print(' end')
print(' end')
print('endmodule')
with file('temp/uut_%05d.ys' % idx, 'w') as f:
with open('temp/uut_%05d.ys' % idx, 'w') as f:
with redirect_stdout(f):
print('rename uut_%05d gate' % idx)
print('read_verilog temp/uut_%05d.v' % idx)
print('rename uut_%05d gold' % idx)
print('hierarchy; proc;;')
print('miter -equiv -flatten -ignore_gold_x -make_outputs -make_outcmp gold gate miter')
print('sat -verify-no-timeout -timeout 20 -seq 5 -set-at 1 %s_rst 1 -prove trigger 0 -prove-skip 1 -show-inputs -show-outputs miter' % ('gold' if rst2 else 'in'))
with file('temp/uut_%05d_pp.ys' % idx, 'w') as f:
with open('temp/uut_%05d_pp.ys' % idx, 'w') as f:
with redirect_stdout(f):
print('rename uut_%05d gate' % idx)
print('read_verilog temp/uut_%05d.v' % idx)
Expand Down
3 changes: 0 additions & 3 deletions tests/simple/run-test.sh
Expand Up @@ -48,7 +48,4 @@ for d in $devices; do
icepack $d/$pll.txt $d/$pll.bin
done

$arachne_pnr -d $d tri.blif -o $d/tri.txt
shasum $d/tri.txt >> txt.sum
icepack $d/tri.txt $d/tri.bin
done