head	1.6;
access;
symbols
	INITIAL:1.1.1.1 zet86:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2008.10.20.00.48.30;	author zeus;	state Exp;
branches;
next	1.5;
commitid	48a648fbd5544567;

1.5
date	2008.10.16.01.20.52;	author zeus;	state Exp;
branches;
next	1.4;
commitid	686648f696e94567;

1.4
date	2008.09.24.02.27.21;	author zeus;	state Exp;
branches;
next	1.3;
commitid	770e48d9a57f4567;

1.3
date	2008.09.14.02.43.56;	author zeus;	state Exp;
branches;
next	1.2;
commitid	680948cc7a674567;

1.2
date	2008.09.07.01.46.14;	author zeus;	state Exp;
branches;
next	1.1;
commitid	2a6d48c3325c4567;

1.1
date	2008.07.03.09.06.09;	author zeus;	state Exp;
branches
	1.1.1.1;
next	;
commitid	2460486c96504567;

1.1.1.1
date	2008.07.03.09.06.09;	author zeus;	state Exp;
branches;
next	;
commitid	2460486c96504567;


desc
@@


1.6
log
@BIOS booting
@
text
@#s3roms :=  $(patsubst %.s,%.s3rom,$(wildcard *.s))
ml403roms := $(patsubst %.s,%.bin,$(wildcard *.s))
rtlroms := $(patsubst %.s,%.rtlrom,$(wildcard *s))

all: $(ml403roms)

# altera: ../../altera/zet/simulation/modelsim/bios0.dat ../../altera/zet/simulation/modelsim/bios1.dat

# ../../altera/zet/simulation/modelsim/bios0.dat: bios0.out
#	hexdump -v -e '1/1 "%02X"' -e '"\n"' bios0.out > ../../altera/zet/simulation/modelsim/bios0.dat

#../../altera/zet/simulation/modelsim/bios1.dat: bios1.out
#	hexdump -v -e '1/1 "%02X"' -e '"\n"' bios1.out > ../../altera/zet/simulation/modelsim/bios1.dat

#../../sim/bios.dat: bios.out
#	hexdump -v -e '1/1 "%02X"' -e '"\n"' bios.out > ../../sim/bios.dat
#	hexdump -v -e '1/2 "0x1%04_ax/%04x"' -e '"\n"' bios.out | awk -F/ '{printf "00%x/%s\n", rshift(strtonum($$1),1), $$2}' > ../../impl/spartan3an-sk/sim/flash-prom/memory_file

#$(BIOS): bios.out
#	splitlh bios.out $(BIOS)

%.s3rom: %.out
	hexdump -v -e '1/2 "0x1%04_ax/%04x"' -e '"\n"' $< | awk -F/ '{printf "00%x/%s\n", rshift(strtonum($$1),1), $$2}' > ../../impl/spartan3an-sk/sim/flash-prom/$@@

%.mcs: %.out
	echo :020000040001F9 > $@@
	hexdump -v -e '":20%04_ax00"' -e '32/1 "%02x"' -e '"00"' -e '"\n"' $< | tr a-z A-Z >> $@@
	echo :00000001FF >> $@@

%.rtlrom: %.out
	hexdump -v -e '1/2 "%04X"' -e '"\n"' $< > ../../sim/$@@

%.rtlold: %.out
	hexdump -v -e '1/1 "%02X"' -e '"\n"' $< > ../../sim/$@@

%.rom: %.out
	out2rom-ml403 < $< > $@@
	
%.bin: %.rom
	cat count.rom $< > $@@

%.out: %.o
	objcopy -O binary -S $< $@@

%.o: %.c
	as $< -o $@@

clean:
	rm -f *.o *.out *.bin *.mcs ../../impl/spartan3an-sk/sim/flash-prom/*.s3rom ../../sim/*.rtlrom
@


1.5
log
@Full Wishbone master compliant
@
text
@d1 1
a1 1
s3roms :=  $(patsubst %.s,%.s3rom,$(wildcard *.s))
d4 2
a5 1
all: $(ml403roms) $(rtlroms)
@


1.4
log
@Shifts test case
@
text
@d2 1
d4 1
a4 1
all: $(s3roms) $(rtlroms)
d30 3
@


1.3
log
@Bitwise operators test bench
@
text
@d35 1
a35 1
	cat ff.rom $< > $@@
@


1.2
log
@JMP and MOV tests passed
@
text
@d44 1
a44 1
	rm -f *.o *.out *.mcs ../../impl/spartan3an-sk/sim/flash-prom/*.s3rom ../../sim/*.rtlrom
@


1.1
log
@Initial revision
@
text
@d31 6
@


1.1.1.1
log
@Initial import
@
text
@@
