-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
47 lines (44 loc) · 756 Bytes
/
BUILD
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
load(
"@fpga_rules//vivado:rules.bzl",
"fpga_bitstream",
"run_tcl_template"
)
load(
"@fpga_rules//clash:rules.bzl",
"clash_to_vhdl"
)
run_tcl_template(
name = "clockgen",
build_template = "clockGen.tcl",
outs = [
"ip/clocks/clocks.v",
"ip/clocks/clocks_clk_wiz.v",
"ip/clocks/clocks.xci"
]
)
fpga_bitstream(
name = "synth",
srcs = [
":synth_clash",
":clockgen",
"synthWrapper.vhd"
],
part = "xc7z020clg400-1",
constraints = [
"const.xdc",
],
topEntity = "synthWrapper",
optimize = False
)
clash_to_vhdl(
name = "synth_clash",
srcs = [
"Synth.hs",
"Counter.hs"
],
outputs = [
"vhdl/Synth/topentity.vhdl",
"vhdl/Synth/synth_types.vhdl"
],
top_entity = "Synth.hs"
)