Email: bknpk@hotmail.com Phone: +972-54-7649119


V

 

ASIC/FPGA Design and Verification Out Source Services

VHDL IP Stack Makefile
This is a makefile for IP stack project.

  1. #variables
  2. CC = gcc
  3. CFLAGS = -c -g
  4. #-MD
  5. SHELL := /bin/bash
  6. GG = ghdl
  7. GG_LIB = --ieee=synopsys --workdir=work
  8. AFLAGS = -a --work=work
  9. IFLAGS = -e
  10. EFLAGS = -m -Wl,g_rand.o
  11. #to override use make run RTIME=1000
  12. RTIME = 500
  13. RUN = --stop-time=$(RTIME)us --assert-level=error
  14. VCD = --vcdgz=ghdl.vcd.gz
  15. .PHONY : run
  16. run :
  17.   ./ip_stack_tsb $(RUN) |& tee ghdl.log
  18. .PHONY : vcd
  19. vcd :
  20.   ./ip_stack_tsb $(RUN) $(VCD) |& tee ghdl.log
  21. .PHONY : all
  22. all : elab exe
  23. .PHONY : exe
  24. exe : elab
  25.   $(GG) $(IFLAGS) $(GG_LIB) ip_stack_TSB
  26. .PHONY : elab
  27. elab : TB_1/tb_1.vhd TB_1/rx_gen.vhd globalconstants.vhd stack3.vhd ethernet.vhd crcgenerator.vhd ethernetsnd.vhd arp3.vhd arpsnd.vhd internet.vhd internetsnd.vhd udp.vhd icmp.vhd my_bufg.vhd MEMORY/memory.vhd MEMORY/sync_mem.vhd
  28.   $(GG) $(AFLAGS) $(GG_LIB) TB_1/tb_1.vhd TB_1/rx_gen.vhd globalconstants.vhd stack3.vhd ethernet.vhd crcgenerator.vhd ethernetsnd.vhd arp3.vhd arpsnd.vhd internet.vhd internetsnd.vhd udp.vhd icmp.vhd my_bufg.vhd MEMORY/memory.vhd MEMORY/sync_mem.vhd
  29. .PHONY: cleanall
  30. cleanall :
  31.   $(shell `find . -maxdepth 1 -name "*.o" -exec rm -f {} \;`)
  32.   $(shell `find . -maxdepth 1 -name "*.cf" -exec rm -f {} \;`)
  33.   $(shell `find . -maxdepth 1 -name "ip_stack_tsb" -exec rm -f {} \;`)
  34.   $(shell `rm work/*`)
  35. $(warning Pini's makefile)
  36. $(info CC debug = $(CC))
  ...


Home

GHDL: c interfaces and extensions random number generation

GHDL: random generation using c code and VHPI for a IP TTL filter







Search This Site


Feedback This Site




new pages on this site