URL
https://opencores.org/ocsvn/copyblaze/copyblaze/trunk
Subversion Repositories copyblaze
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 26 to Rev 27
- ↔ Reverse comparison
Rev 26 → Rev 27
/copyblaze/trunk/copyblaze/sw/code/pBlaze/wb_gpio/wb_gpio.asm
0,0 → 1,44
; project : copyBlaze 8 bit processor |
; file name : wb_gpio.asm |
; author : abdAllah Meziti |
; licence : LGPL |
|
; this programm test the wishbone copyBlaze instruction. |
; it use this module : |
; wb_gpio_08.vhd |
|
WB_GPIO_IN_ADDR .EQU 0x01 |
WB_GPIO_OU_ADDR .EQU 0x04 |
|
wb_data_out .EQU s8 |
wb_data_in .EQU s0 |
; |
|
; ========================================================== |
start: |
; ========================================================== |
|
; |
LOAD wb_data_out, 0x00 ; |
LOAD wb_data_out, 0x01 ; |
LOAD wb_data_out, 0x02 ; |
|
; wishbone WRITE instruction |
WBWRSING wb_data_out, WB_GPIO_OU_ADDR |
LOAD wb_data_out, 0x03 ; |
LOAD wb_data_out, 0x04 ; |
LOAD wb_data_out, 0x05 ; |
; wishbone WRITE instruction |
WBWRSING wb_data_out, WB_GPIO_OU_ADDR |
LOAD wb_data_out, 0x06 ; |
LOAD wb_data_out, 0x07 ; |
LOAD wb_data_out, 0x08 ; |
; wishbone READ instruction |
WBRDSING wb_data_in, WB_GPIO_IN_ADDR ; |
LOAD wb_data_out, 0x0A ; |
LOAD wb_data_out, 0x0B ; |
LOAD wb_data_out, 0x0C ; |
|
end: |
JUMP end |
; |
/copyblaze/trunk/copyblaze/sw/code/pBlaze/wb_gpio/Makefile
0,0 → 1,53
# path to tools |
#DRIVE=E: |
DRIVE=/cygdrive/e |
TOPPATH=../../../.. |
TOOLPATH=$(TOPPATH)/sw/tools/asm |
|
AS=$(TOOLPATH)/pBlazASM/pBlazASM/pBlazASM.exe |
#MG=$(TOOLPATH)/pBlazASM/pBlazMRG/pBlazMRG.exe |
MG=$(TOOLPATH)/pBlazASM/cpBlazeMRG/cpBlazeMRG.exe |
|
DIROUT=$(TOPPATH)/rtl/vhdl |
|
RM = rm -f -v |
CP = cp |
|
# List of PSM Files |
#ASM_SRC = Test_Mnemonics.asm |
ASM_SRC = *.asm |
#AFLAGS = -l -m |
AFLAGS = -l -x |
MGFLAGS = |
TEMPLATE = ../template2 |
ENTITY = cp_ROM_Code |
|
.SUFFIXES : .psm .mem .vhd .psh |
|
# assemble and merge |
all: $(ENTITY).vhd |
|
# assemble # |
$(ENTITY).mem: $(ASM_SRC) |
$(AS) $(ASM_SRC) $(AFLAGS) |
# $(CP) *.mem $(ENTITY).mem |
$(CP) *.hex $(ENTITY).hex |
|
# merge # |
#$(ENTITY).vhd: $(ENTITY).mem $(TEMPLATE).vhd |
$(ENTITY).vhd: $(ENTITY).mem |
# $(MG) $(MGFLAGS) -e$(ENTITY) $(ENTITY).mem $(TEMPLATE).vhd $(ENTITY).vhd |
$(MG) $(MGFLAGS) $(ENTITY).hex |
$(CP) $(ENTITY).vhd $(DIROUT)/$(ENTITY).vhd |
|
# clean outputs |
clean: |
# $(RM) $(ENTITY).lst |
$(RM) *.lst |
# $(RM) $(ENTITY).mem |
$(RM) *.mem |
# $(RM) $(ENTITY).vhd |
$(RM) *.hex |
$(RM) *.log |
$(RM) *.vhd |
$(RM) *.bin |