summaryrefslogtreecommitdiff
path: root/rtl/top/mod.mk
blob: 2adc352f859da1fbfa8bf8628a1ac986e88ba58e (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
47
48
49
50
51
52
53
54
55
56
57
cores := conspiracion test_fb test_fifo test_ring test_smp

define core/conspiracion
  $(this)/deps := config
  $(this)/targets := sim

  $(this)/rtl_files := conspiracion.sv
  $(this)/rtl_top   := conspiracion

  $(this)/vl_main   := ../../tb/top/conspiracion/conspiracion.cpp
  $(this)/vl_runner := run_conspiracion

  $(this)/altera_device := 5CSEMA5F31C6
  $(this)/altera_family := Cyclone V

  ifeq (sim,$(flow/type))
    $(this)/deps += conspiracion/tb
  else ifeq (syn,$(flow/type))
    $(this)/deps += de1soc
  endif
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