Confusion between tick/tock and times

Posted by gs99 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Confusion-between-tick-tock-and-times-tp4026166.html

Please clarify this confusion I have for tick and tock.

In RAMxxx scripts, if "set load 1" is in tick, then the input is outed in tock.
Example, if RAM8.tst file has these lines:
set in 2,
set address 3,
set load 1,
tick,
output;
tock,
output;

RAM8.out has:
| time |   in   |load |address|  out   |
| 0+   |      2 |  1  |   3        |      0 |
| 1     |      2 |  1  |   3        |      2 |
Time 0+ is output from tick, then time 1 is output from tock, correct?

But Figure 3.5 Counter simulation on page 51 shows similar actions occurring in separate “times” (E.g. The load bit is asserted in time 29, and the input of 527 is outed in the next time 30). The clock row seems to indicate tick and tock as parts of each time.
What happens in the script “tick and then tock” seems to happen in Counter simulation in two consecutive times – “time and then next time”.
I assume Counter simulation generally represents what happens for RAMxxx chips regarding clock operation.