3 YOSYS_INCLUDE
= $(shell yosys-config
--datdir
)/include
8 ls180_ghdl
: main.
cpp ls180_ghdl.
cpp
10 -DDESIGN
=cxxrtl_design
::p_ls180 \
11 -DCXX_FILE
=\"ls180_ghdl.
cpp\" \
12 -g
-O3
-std
=c
++14 -I
$(YOSYS_INCLUDE
) $< -o
$@
14 tb_ghdl
: main.
cpp add_ghdl.
cpp
16 -DDESIGN
=cxxrtl_design
::p_add \
17 -DCXX_FILE
=\"add_ghdl.
cpp\" \
18 -g
-O3
-std
=c
++14 -I
$(YOSYS_INCLUDE
) $< -o
$@
22 -DDESIGN
=cxxrtl_design
::p_add \
23 -DCXX_FILE
=\"add.
cpp\" \
24 -g
-O3
-std
=c
++14 -I
$(YOSYS_INCLUDE
) $< -o
$@
27 $(YOSYS
) -p
"read_verilog $<; write_cxxrtl $@"
29 # build verilog from nmigen
34 \rm
-f add.
cpp tb add.v