This commit is contained in:
kraus 2019-09-22 22:27:31 +02:00
parent 96450761f1
commit a2a0f97ac3
3 changed files with 28 additions and 3 deletions

View File

@ -118,7 +118,7 @@ upload: $(DISNAME) $(HEXNAME) $(ELFNAME)
.PHONY: clean
clean:
$(RM) $(OBJ) $(HEXNAME) $(ELFNAME) $(LIBNAME) $(DISNAME) $(MAPNAME) libssp.a libssp_nonshared.a
$(RM) $(OBJ) $(HEXNAME) $(ELFNAME) $(LIBNAME) $(DISNAME) $(MAPNAME) libssp.a libssp_nonshared.a plu.c
# implicit rules
.elf.hex:
@ -128,8 +128,8 @@ clean:
# explicit rules
plu.c: Makefile
./pluc 'PIO0_22 <= LVLSHFT_OUT0; LVLSHFT_IN0 <= PIO0_10;' 'PIO0_9 <= !PIO0_2 & !PIO0_22; ' -oc plu.c
plu.c: Makefile plu.bex plu.bms
./pluc plu.bex plu.bms -oc plu.c
$(ELFNAME): $(LIBNAME)($(OBJ)) libssp.a libssp_nonshared.a plu.c
$(LINK.o) $(LFLAGS) $(LIBNAME) $(LDLIBS) -o $@

View File

@ -0,0 +1,13 @@
# plu.bex
#
# switches are at PIO0_10 and PIO0_2
# Because only PIO0_10 or PIO0_2 can be used as input for PLU,
# PIO0_10 is routed via LVLSHFT0 path to PIO0_22
PIO0_22 <= LVLSHFT_OUT0;
LVLSHFT_IN0 <= PIO0_10;
#PIO0_9 <= !PIO0_2 & !PIO0_22;
PLU_CLKIN <= CLKOUT;

View File

@ -0,0 +1,12 @@
#
#
name muller_c
input PIO0_2 0
input PIO0_22 0
output PIO0_9 0
0 1 PIO0_2+ PIO0_22+ | PIO0_9+
1 0 PIO0_2- PIO0_22- | PIO0_9-