Skip to content

Commit 60868f9

Browse files
committed
examples: added nexys3 (ise)
1 parent ff41f99 commit 60868f9

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

examples/ise/ise.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,30 @@
1111
parser.add_argument(
1212
'--action', choices=['generate', 'transfer', 'all'], default='generate',
1313
)
14+
parser.add_argument(
15+
'--board',
16+
choices=['nexys3', 's6micro'],
17+
default='nexys3'
18+
)
1419
args = parser.parse_args()
1520

21+
BOARDS = {
22+
'nexys3': ['XC6SLX16-3-CSG324', 'nexys3.ucf', 'nexys3.xcf'],
23+
's6micro': ['XC6SLX9-2-CSG324', 's6micro.ucf', 's6micro.xcf']
24+
}
25+
1626
prj = Project('ise')
17-
prj.set_part('XC6SLX9-2-CSG324')
27+
prj.set_part(BOARDS[args.board][0])
1828

19-
prj.set_outdir('../../build/ise')
29+
prj.set_outdir('../../build/ise-{}'.format(args.board))
2030

2131
prj.add_files('../../hdl/blinking.vhdl', library='examples')
2232
prj.add_files('../../hdl/examples_pkg.vhdl', library='examples')
2333
prj.add_files('../../hdl/top.vhdl')
2434
prj.set_top('Top')
25-
prj.add_files('s6micro.xcf')
26-
prj.add_files('s6micro.ucf')
35+
36+
prj.add_files(BOARDS[args.board][1])
37+
prj.add_files(BOARDS[args.board][2])
2738

2839
if args.action in ['generate', 'all']:
2940
try:

examples/ise/nexys3.ucf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# User Constraints File
2+
#
3+
# Used during the implementation to specify timing, placement and pinout
4+
# constraints.
5+
6+
NET "clk_i" LOC = "V10";
7+
NET "led_o" LOC = "U16";

examples/ise/nexys3.xcf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Xilinx Constraint File
2+
#
3+
# Used during the synthesis (XST) to specify timing and synthesis constraints.
4+
5+
NET "clk_i" TNM_NET = "clk_i";
6+
TIMESPEC "TS_clk_i" = PERIOD "clk_i" 10.00 ns HIGH 50%;

0 commit comments

Comments
 (0)