-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUCK
41 lines (37 loc) · 868 Bytes
/
BUCK
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
load("//tools:hdl.bzl", "vhdl_unit", "vunit_sim")
load("//tools:rdl.bzl", "rdl_file")
rdl_file(
name = "spi_nor_regs_rdl",
src = "spi_nor_regs.rdl",
outputs = [
"spi_nor_regs_pkg.vhd",
"spi_nor_regs.html",
"spi_nor_regs.json",
],
visibility = ["PUBLIC"],
)
vhdl_unit(
name = "spi_nor_top",
srcs = glob([
"*.vhd",
"link/*.vhd",
"spi_txn/*.vhd",
"espi_txn/*.vhd",
]),
standard = "2019",
deps = [
":spi_nor_regs_rdl",
"//hdl/ip/vhd/fifos:dcfifo_xpm",
"//hdl/ip/vhd/axi_blocks:axilite_if_2k19_pkg",
],
visibility = ["PUBLIC"],
)
vunit_sim(
name = "spi_nor_top_sim",
srcs = glob(["sims/*.vhd"]),
deps = [
":spi_nor_top",
"//hdl/ip/vhd/axi_blocks:axil_interconnect",
],
visibility = ["PUBLIC"],
)