Makefile 1.68 KB
#

all: vudp div_rom

vudp:
	make BLOCK=vudp vudp.mcp

div_rom:
	make BLOCK=div_rom div_rom.mcp


#############################
# generic definitions

SRCDIR  =  ../src

LIBPATH = compass lib_patches ne35hd130d ne35dp120d nece01_sgid ne35io120d ne35ro110d vsnl000x vlogdp010d cmosch000x 

#############################
# copy datapath schematic

vudatapath.la: $(SRCDIR)/vudatapath.la
	/sbin/rm -f vudatapath.la
	cp $(SRCDIR)/vudatapath.la .

#############################
# datapath layout

vudp.mcp: vudatapath.la vudp.dprscr compass_files
	-/sbin/rm -f vudp*.nls* 
	-/sbin/rm -f vudp.pcl
	csh vudp.dprscr | tee vudp.dprlog

#############################
# copy div_rom code file

div_rom.cod: $(SRCDIR)/div_rom.cod
	/sbin/rm -f div_rom.cod
	cp $(SRCDIR)/div_rom.cod .

#############################
# div_rom layout

div_rom.mcp: div_rom.cod div_rom.dprscr compass_files
	-/sbin/rm -f div*.nls* 
	-/sbin/rm -f div_rom.pcl
	csh div_rom.dprscr | tee div_rom.dprlog

#############################
# compass files

compass_files: compass.db vlsi.idx vlsi.atr vlsi.boo

compass.db:
	@/sbin/echo "Creating ./compass.db ..."
	@/sbin/echo "v1(0,compass)"  > compass.db 

vlsi.idx:
	@/sbin/echo "Creating ./vlsi.idx ..."
	@/sbin/echo "compass"  > vlsi.idx 

vlsi.atr:
	@/sbin/echo "Creating ./vlsi.atr ..."
	@/sbin/echo '\"7-Jun-94\" \"8:42\"'  > vlsi.atr 
	@/sbin/echo "anyone"  >> vlsi.atr 
	@/sbin/echo "working"  >> vlsi.atr 
	@/sbin/echo "2"  >> vlsi.atr 

vlsi.boo:
	@/sbin/echo "Creating ./vlsi.boo ..."
	@/sbin/echo "# layout directory vlsi.boo" > vlsi.boo
	@/sbin/echo "" >> vlsi.boo
	@/sbin/echo "cell_library compass ." >> vlsi.boo
	@/sbin/echo "search_path $(LIBPATH)" >> vlsi.boo
	@/sbin/echo "" >> vlsi.boo