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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pBlaze/] [wishbone/] [wishbone.asm] - Diff between revs 2 and 9

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 9
Line 6... Line 6...
 
 
                total_low       .EQU   s0
                total_low       .EQU   s0
                total_high      .EQU   s1
                total_high      .EQU   s1
                value           .EQU   s8
                value           .EQU   s8
                ;
                ;
 
 
 
                ; ==========================================================
start:
start:
                LOAD    value,          0x1F    ; find sum of all values to 1F
                LOAD    value,          0x1F    ; find sum of all values to 1F
                LOAD    total_low,      0x00    ; clear 16-bit total
                LOAD    total_low,      0x00    ; clear 16-bit total
                LOAD    total_high,     0x00
                LOAD    total_high,     0x00
 
 
                CALL    sum_to_value            ; calculate sum of all numbers up to value
                CALL    sum_to_value            ; calculate sum of all numbers up to value
 
 
 
                OUTPUT  total_low,      counter_port    ;       result : Value.LOW
 
                OUTPUT  total_high,     waveform_port   ;       result : Value.HIGH
 
                ; ==========================================================
 
 
 
                ; Test Wishbone Instructions
                LOAD    value,          0x00    ; clear the register
                LOAD    value,          0x00    ; clear the register
                LOAD    value,          0x01    ;
                LOAD    value,          0x01    ;
                LOAD    value,          0x02    ;
                LOAD    value,          0x02    ;
 
 
                WBWRSING        total_high,     counter_port    ; Result will be 496 (1F0 hex)
                WBWRSING        total_high,     counter_port    ; Result will be 496 (1F0 hex)

powered by: WebSVN 2.1.0

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