diff options
author | Andreas Bogk <andreas@pt141.(none)> | 2009-01-24 17:06:16 +0100 |
---|---|---|
committer | Andreas Bogk <andreas@pt141.(none)> | 2009-01-24 17:06:16 +0100 |
commit | c8747f28d85fcc6c9f431fb2afc9627c4356826d (patch) | |
tree | e584a3eb0b40ae9c034b158ca0308eea47198a82 /A5.1/Verilog/Piotr/Makefile | |
parent | 3293cd52b23a1f0736aff7b0a8c9078dc976c04f (diff) |
Piotr's pipelined implementation.
Diffstat (limited to 'A5.1/Verilog/Piotr/Makefile')
-rw-r--r-- | A5.1/Verilog/Piotr/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/A5.1/Verilog/Piotr/Makefile b/A5.1/Verilog/Piotr/Makefile new file mode 100644 index 0000000..7f074a7 --- /dev/null +++ b/A5.1/Verilog/Piotr/Makefile @@ -0,0 +1,49 @@ +T = one_step +TGT = ${T}_tb + +LIB="./" + +INCLUDE_DIR=./ + +VERILOG_SOURCES = ${TGT}.v \ +${T}.v + +SIMFILE = ${TGT}.vvp +VCDFILE = ${TGT}.vcd + +WAVERC = gtkwaverc +WAVECFG = ${TGT}.sav + +ICARUS = iverilog +IFLAGS = -v + +VVP = vvp +VFLAGS = -v +VFLAGSEXTRA = + +GTKWAVE = gtkwave +GFLAGS = --save=${WAVECFG} --rcfile=${WAVERC} + +all: compile simulate gtkwave + +${TGT}.vvp: ${VERILOG_SOURCES} + @ echo Compiling verilog files... + @ ${ICARUS} ${IFLAGS} -s ${TGT} -o ${SIMFILE} -y ${LIB} ${VERILOG_SOURCES} -I${INCLUDE_DIR} + +compile : ${TGT}.vvp + +${TGT}.vcd: compile + @ echo Simulating design... + @ ${VVP} ${VFLAGS} ${SIMFILE} ${VFLAGSEXTRA} + +simulate : ${TGT}.vcd + +gtkwave : compile simulate + @ echo Viewing waveforms in gtkwave... + @ ${GTKWAVE} ${GFLAGS} ${VCDFILE} + +clean: + @ echo Cleaning up... + @rm -f *.vvp *.vcd *~ *.log + + |