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

Subversion Repositories eco32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /eco32
    from Rev 36 to Rev 37
    Reverse comparison

Rev 36 → Rev 37

/trunk/simtest/Makefile.run
22,6 → 22,8
@echo " run-rom05 (\"Hello, world!\", on terminal 1)"
@echo " run-rom06 (crossed echo with two terminals)"
@echo " run-rom07 (string output to output device)"
@echo " run-rom08 (string output with delay loop)"
@echo " run-rom09 (string output with timing loop)"
@echo " run-rom10 (console character attributes)"
@echo " run-romboot (ROM bootstrapping disk)"
@echo " clean"
54,6 → 56,12
run-rom07:
$(BUILD)/bin/sim -i -r rom07.bin -o $(LOGFILE)
 
run-rom08:
$(BUILD)/bin/sim -i -r rom08.bin -t 1
 
run-rom09:
$(BUILD)/bin/sim -i -r rom09.bin -t 1
 
run-rom10:
$(BUILD)/bin/sim -i -r rom10.bin -c
 
/trunk/simtest/rom/rom08.s
0,0 → 1,36
;
; rom08.s -- string output with delay loop
;
 
; $8 I/O base address
; $9 temporary value
; $10 character
; $11 pointer to string
; $31 return address
 
.set oba,0xF0300000
 
add $8,$0,oba
add $11,$0,hello
loop:
ldbu $10,$11,0
stop:
beq $10,$0,stop
jal out
add $11,$11,1
jal delay
j loop
 
out:
stw $10,$8,12
jr $31
 
delay:
add $9,$0,0x00200000
del1:
sub $9,$9,1
bne $9,$0,del1
jr $31
 
hello:
.byte "Hello, world!", 0x0D, 0x0A, 0
/trunk/simtest/rom/rom09.s
0,0 → 1,41
;
; rom09.s -- string output with timing loop
;
 
; $8 I/O base address
; $9 temporary value
; $10 character
; $11 pointer to string
; $12 timer base address
; $13 timer value
; $31 return address
 
.set oba,0xF0300000
.set tba,0xF0000000
 
add $8,$0,oba
add $12,$0,tba
add $11,$0,hello
loop:
ldbu $10,$11,0
stop:
beq $10,$0,stop
jal out
add $11,$11,1
jal timing
j loop
 
out:
stw $10,$8,12
jr $31
 
timing:
ldw $13,$12,8
sub $9,$13,0x03C00000
tim1:
ldw $13,$12,8
bgtu $13,$9,tim1
jr $31
 
hello:
.byte "Hello, world!", 0x0D, 0x0A, 0

powered by: WebSVN 2.1.0

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