2014-12-05 11:48:01 -05:00
|
|
|
MSCDIR = ../../../
|
2014-11-03 12:11:14 -05:00
|
|
|
PYTHON = python3
|
|
|
|
|
|
|
|
CMD = PYTHONPATH=$(MSCDIR) $(PYTHON)
|
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
CFLAGS =-Wall -O0
|
|
|
|
|
|
|
|
crc_tb:
|
|
|
|
$(CC) $(CFLAGS) $(INC) -o crc crc.c
|
2014-11-03 12:54:41 -05:00
|
|
|
$(CMD) crc_tb.py
|
2014-11-03 12:11:14 -05:00
|
|
|
|
|
|
|
scrambler_tb:
|
|
|
|
$(CC) $(CFLAGS) $(INC) -o scrambler scrambler.c
|
2014-11-04 05:40:43 -05:00
|
|
|
$(CMD) scrambler_tb.py
|
2014-11-03 12:11:14 -05:00
|
|
|
|
2014-11-11 12:47:34 -05:00
|
|
|
link_tb:
|
|
|
|
$(CMD) link_tb.py
|
|
|
|
|
2014-11-04 11:06:03 -05:00
|
|
|
all: crc_tb scrambler_tb
|
|
|
|
|
2014-11-03 12:11:14 -05:00
|
|
|
clean:
|
2014-12-02 13:24:46 -05:00
|
|
|
rm crc scrambler *.vcd
|