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

Subversion Repositories sv_dir_tb

[/] [sv_dir_tb/] [trunk/] [examples/] [standard/] [stm/] [test_include.stm] - Rev 2

Compare with Previous | Blame | View Log

DEFINE_VAR  VAR1  0
DEFINE_VAR  VAR2  0
DEFINE_VAR  VAR3  0
DEFINE_VAR  VAR4  0
DEFINE_VAR  VAR5  0
DEFINE_VAR  VAR6  0
DEFINE_VAR  VAR7  0
DEFINE_VAR  VAR8  0
DEFINE_VAR  VAR9  0

--  CALL depth testing
TEST1_CALL:
  ADD_VAR VAR1  2  "The Call TEST1_CALL ...
  CALL $TEST2_CALL
RETURN_CALL

TEST2_CALL:
  ADD_VAR VAR1  2  "The Call TEST2_CALL ...
  CALL $TEST3_CALL
RETURN_CALL

TEST3_CALL:
  ADD_VAR VAR1  2  "The Call TEST3_CALL ...
  CALL $TEST4_CALL
RETURN_CALL

TEST4_CALL:
  ADD_VAR VAR1  2  "The Call TEST4_CALL ...
  CALL $TEST5_CALL
RETURN_CALL

TEST7_CALL:
  ADD_VAR VAR1  2  "The Call TEST7_CALL ...
RETURN_CALL

TEST_CALL:
  ADD_VAR VAR1  1  "The Call TEST_CALL ...
  ADD_VAR VAR2  2
  CALL $TEST1_CALL
RETURN_CALL

TEST5_CALL:
  ADD_VAR VAR1  2  "The Call TEST5_CALL ...
  CALL $TEST6_CALL
RETURN_CALL

TEST6_CALL:
  ADD_VAR VAR1  2  "The Call TEST6_CALL ...
  CALL $TEST7_CALL
RETURN_CALL

--  test  JUMP location
JUMP1_LOC:

--  LOOP testing
LOOP 10  "Loop top variable  comment??
  ADD_VAR VAR1  1  "Jump Loops  ...
  ADD_VAR VAR2  2
  ADD_VAR VAR3  3
  ADD_VAR VAR4  4
  ADD_VAR VAR5  5
  ADD_VAR VAR6  6
  ADD_VAR VAR7  7
  ADD_VAR VAR8  8
  ADD_VAR VAR9  9
END_LOOP

LOOP 5
  SUB_VAR VAR1  1
  SUB_VAR VAR2  2
  SUB_VAR VAR3  3
  SUB_VAR VAR4  4
  SUB_VAR VAR5  5
  SUB_VAR VAR6  6
  SUB_VAR VAR7  7
  SUB_VAR VAR8  8
  SUB_VAR VAR9  9
END_LOOP

--  Loops in Loops  ....
LOOP 2
  LOOP 2
    LOOP 2
      LOOP 2
        ADD_VAR VAR1 1  "Loop level 4
      END_LOOP
      ADD_VAR VAR1 1  "Loop level 3
    END_LOOP
    ADD_VAR VAR1 1  "Loop level 2
  END_LOOP
  ADD_VAR VAR1 1  "Loop level 1
END_LOOP


JUMP $TEST_END  "Jumping to the end ...

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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