add ghdl yosys scripts for compiling ls180
[soc-cxxrtl-sim.git] / small_jtag_test / Makefile
index 778623fdb7aad7f87bfeba356543bdae02e6873f..d1b97c2a8a41a6529d493de4206e4d043372966d 100644 (file)
@@ -5,6 +5,12 @@ YOSYS_INCLUDE  = $(shell yosys-config --datdir)/include
 all: tb
        ./tb
 
+ls180_ghdl: main.cpp ls180_ghdl.cpp
+       clang++ \
+    -DDESIGN=cxxrtl_design::p_ls180 \
+    -DCXX_FILE=\"ls180_ghdl.cpp\" \
+    -g -O3 -std=c++14 -I $(YOSYS_INCLUDE) $< -o $@
+
 tb_ghdl: main.cpp add_ghdl.cpp
        clang++ \
     -DDESIGN=cxxrtl_design::p_add \