1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/usr/bin/env python
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template
from werkzeug import secure_filename
import os
from settings import *
import xilinx
app = Flask(__name__)
app.config.from_object(__name__)
@app.route('/', methods=['GET'])
def index():
return render_template('index.html')
@app.route('/xilinx/spartan3a/', methods=['GET'])
def xilinx_spartan3a():
return render_template('grid.html', grid=xilinx.spartan3a_grid)
@app.route('/xilinx/virtex6/', methods=['GET'])
def xilinx_virtex6():
return render_template('grid.html', grid=xilinx.virtex6_grid)
@app.route('/xilinx/virtex7/', methods=['GET'])
def xilinx_virtex7():
return render_template('grid.html', grid=xilinx.virtex7_grid)
@app.route('/xilinx/artix7/', methods=['GET'])
def xilinx_artix7():
return render_template('grid.html', grid=xilinx.artix7_grid)
@app.route('/xilinx/kintex7/', methods=['GET'])
def xilinx_kintex7():
return render_template('grid.html', grid=xilinx.kintex7_grid)
@app.route('/xilinx/spartan6/', methods=['GET'])
def xilinx_spartan6():
return render_template('grid.html', grid=xilinx.spartan6_grid)
@app.route('/xilinx/zynq7000/', methods=['GET'])
def xilinx_zynq7000():
return render_template('grid.html', grid=xilinx.zynq7000_grid)
if __name__ == '__main__':
app.run(debug=DEBUG, port=PORT, host=HOST)
|