summaryrefslogtreecommitdiff
path: root/rtl/top/mod.mk
blob: 6c6acf2250b65a78ea85cb7343c26472f0ee1dcc (plain)
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
cores := conspiracion test_fb test_fifo test_ring test_smp

define core/conspiracion
  $(this)/targets   := sim
  $(this)/deps      := conspiracion/tb
  $(this)/rtl_files := conspiracion.sv
  $(this)/rtl_top   := conspiracion
  $(this)/vl_main   := ../../tb/top/conspiracion/conspiracion.cpp
  $(this)/vl_runner := run_conspiracion
endef

define core/test_fb
  $(this)/targets        := test
  $(this)/deps           := gfx
  $(this)/rtl_files      := test_fb.sv
  $(this)/rtl_top        := test_fb
  $(this)/cocotb_paths   := ../../..
  $(this)/cocotb_modules := tb.top.test_fb
endef

define core/test_fifo
  $(this)/targets        := test
  $(this)/deps           := gfx
  $(this)/rtl_files      := test_fifo.sv
  $(this)/rtl_top        := test_fifo
  $(this)/cocotb_paths   := ../../..
  $(this)/cocotb_modules := tb.top.test_fifo
endef

define core/test_ring
  $(this)/targets        := test
  $(this)/deps           := cache
  $(this)/rtl_files      := test_ring.sv
  $(this)/rtl_top        := test_ring
  $(this)/cocotb_paths   := ../../..
  $(this)/cocotb_modules := tb.top.test_ring
endef

define core/test_smp
  $(this)/targets        := test
  $(this)/deps           := smp test_fifo test_ring
  $(this)/rtl_files      := test_smp.sv
  $(this)/rtl_top        := test_smp
  $(this)/cocotb_paths   := ../../..
  $(this)/cocotb_modules := tb.top.test_smp
endef