blob: dadb49d5333f8302188a491f1ac6173e62629ddb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/make
# by RAM 2017
EXAMPLES = $(wildcard examples/*.vhd)
VHDLS = $(notdir $(EXAMPLES))
all: diff
src/vhd2vl:
make -C src
translate: src/vhd2vl
@mkdir -p temp/verilog
@$(foreach VHDL,$(VHDLS),cd examples; ../src/vhd2vl $(VHDL) ../temp/verilog/$(basename $(VHDL)).v)
diff: translate
@diff -u translated_examples temp/verilog
clean:
make -C src clean
rm -fr temp
|