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

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [core/] [9x8/] [peripherals/] [tb/] [wide_strobe/] [tb_wide_strobe.s] - Blame information for rev 7

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

Line No. Rev Author Line
1 3 sinclairrf
; Copyright 2014, Sinclair R.F., Inc.
2
;
3
; Test bench for wide_strobe peripheral.
4
 
5
.main
6
 
7
  ; Wait a while
8
  ${25-1} :wait_startup .jumpc(wait_startup,1-) drop
9
 
10
  ; Exercise the minimum-width peripheral
11
  0x00 .outport(O_MIN)
12
  0x01 .outport(O_MIN)
13
 
14
  ; Exercise the medium-width peripheral
15
  ${2**4-1} :loop_medium O_MED outport .jumpc(loop_medium,1-) drop
16
 
17
  ; Exercise the maximum-width peripheral
18
  0x03 ${12-1} :loop_maximum >r O_MAX outport <<msb r> .jumpc(loop_maximum,1-) drop drop
19
 
20
  ; Wait a few clock cycles.
21
  ${3-1} :wait_end .jumpc(wait_end,1-) drop
22
 
23
  ; Send the termination signal and then enter an infinite loop.
24
  1 .outport(O_DONE)
25
  :infinite .jump(infinite)

powered by: WebSVN 2.1.0

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