VHDLS = \
|
VHDLS = \
|
src/sys_config.vhd \
|
src/sys_config.vhd \
|
src/sorter_pkg.vhd \
|
src/sorter_pkg.vhd \
|
src/dpram4.vhd \
|
|
src/dp_ram_scl_sorter.vhd \
|
|
src/dp_ram_scl_sorter_distributed.vhd \
|
src/dp_ram_scl_sorter_distributed.vhd \
|
|
src/dp_ram_scl_sorter.vhd \
|
src/sort_dpram.vhd \
|
src/sort_dpram.vhd \
|
|
src/sort_cmp_lt.vhd \
|
src/sorter_ctrl.vhd \
|
src/sorter_ctrl.vhd \
|
src/sorter_sys.vhd \
|
src/sorter_sys.vhd \
|
src/sorter_sys_tb.vhd \
|
src/sorter_sys_tb.vhd \
|
|
|
#STD=standard
|
#STD=standard
|
STD=synopsys
|
STD=synopsys
|
VSTD=93c
|
VSTD=93c
|
ENTITY=sorter_sys_tb
|
ENTITY=sorter_sys_tb
|
RUN_OPTIONS=
|
RUN_OPTIONS=
|
all: events.in events.out test
|
all: events.in events.out test
|
events.in: sort_test_gen.py
|
events.in: sort_test_gen.py
|
./sort_test_gen.py
|
./sort_test_gen.py
|
reader: ${ENTITY} ${ENTITY}.ghw
|
reader: ${ENTITY} ${ENTITY}.ghw
|
gtkwave ${ENTITY}.ghw #${ENTITY}.sav
|
gtkwave ${ENTITY}.ghw #${ENTITY}.sav
|
${ENTITY}.ghw: all
|
${ENTITY}.ghw: all
|
ghdl -i --workdir=comp --std=${VSTD} -fexplicit --ieee=${STD} ${ENTITY}
|
ghdl -i --workdir=comp --std=${VSTD} -fexplicit --ieee=${STD} ${ENTITY}
|
ghdl -m --workdir=comp --std=${VSTD} -fexplicit --ieee=${STD} ${ENTITY}
|
ghdl -m --workdir=comp --std=${VSTD} -fexplicit --ieee=${STD} ${ENTITY}
|
./${ENTITY} --wave=${ENTITY}.ghw
|
./${ENTITY} --wave=${ENTITY}.ghw
|
# ghdl -r ${ENTITY} --vcd=${ENTITY}.vcd
|
# ghdl -r ${ENTITY} --vcd=${ENTITY}.vcd
|
|
|
${ENTITY}: ${VHDLS}
|
${ENTITY}: ${VHDLS}
|
# vhdlp -work fmf fmf/*.vhd
|
# vhdlp -work fmf fmf/*.vhd
|
ghdl -a --workdir=comp --std=${VSTD} --ieee=${STD} ${VHDLS}
|
ghdl -a --workdir=comp --std=${VSTD} --ieee=${STD} ${VHDLS}
|
ghdl -e --workdir=comp --std=${VSTD} -fexplicit --ieee=${STD} ${ENTITY}
|
ghdl -e --workdir=comp --std=${VSTD} -fexplicit --ieee=${STD} ${ENTITY}
|
events.out: ${ENTITY} events.in
|
events.out: ${ENTITY} events.in
|
# ./${ENTITY} --wave=${ENTITY}.ghw ${RUN_OPTIONS} --stop-time=200000ns 2>&1 > res.txt
|
# ./${ENTITY} --wave=${ENTITY}.ghw ${RUN_OPTIONS} --stop-time=50000ns 2>&1 > res.txt
|
./${ENTITY} ${RUN_OPTIONS} 2>&1 > res.txt
|
./${ENTITY} ${RUN_OPTIONS} 2>&1 > res.txt
|
test:
|
test:
|
./sort_test_check.py
|
./sort_test_check.py
|
clean:
|
clean:
|
rm -f comp/* *.o *.vcd *.ghw events* ${ENTITY}
|
rm -f comp/* *.o *.vcd *.ghw events* ${ENTITY}
|
|
|
|
|