OpenCores
URL https://opencores.org/ocsvn/copyblaze/copyblaze/trunk

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pBlaze/] [wb_gpio/] [wb_gpio.asm] - Blame information for rev 65

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 ameziti
; project       : copyBlaze 8 bit processor
2
; file name     : wb_gpio.asm
3
; author        : abdAllah Meziti
4
; licence       : LGPL
5
 
6
; this programm test the wishbone copyBlaze instruction.
7
; it use this module :
8
;                       wb_gpio_08.vhd
9
 
10
                WB_GPIO_IN_ADDR         .EQU    0x01
11
                WB_GPIO_OU_ADDR         .EQU    0x04
12
 
13
                wb_data_out                             .EQU   s8
14
                wb_data_in                              .EQU   s0
15
                ;
16
 
17
                ; ==========================================================
18
start:
19
                ; ==========================================================
20
 
21
                ;
22
                LOAD    wb_data_out,            0x00    ;
23
                LOAD    wb_data_out,            0x01    ;
24
                LOAD    wb_data_out,            0x02    ;
25
 
26
                ; wishbone WRITE instruction
27
                WBWRSING        wb_data_out,    WB_GPIO_OU_ADDR
28
                LOAD    wb_data_out,            0x03    ;
29
                LOAD    wb_data_out,            0x04    ;
30
                LOAD    wb_data_out,            0x05    ;
31
                ; wishbone WRITE instruction
32
                WBWRSING        wb_data_out,    WB_GPIO_OU_ADDR
33
                LOAD    wb_data_out,            0x06    ;
34
                LOAD    wb_data_out,            0x07    ;
35
                LOAD    wb_data_out,            0x08    ;
36
                ; wishbone READ instruction
37
                WBRDSING        wb_data_in,             WB_GPIO_IN_ADDR ;
38
                LOAD    wb_data_out,            0x0A    ;
39
                LOAD    wb_data_out,            0x0B    ;
40
                LOAD    wb_data_out,            0x0C    ;
41
 
42
end:
43
                JUMP    end
44
                ;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.