Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To test my circuit on the board, I slowed down the circuit using a slowclock that runs 32 million times slower than the clock. 

Testing using the board: 

lightrom.mp4

The rightmost button is 'reset.'

...

I also speeded up the slow clock by changing the assigned bits since the program was longer.

Testing Displaying the program on the board:

...

Code

Meaning

0000

Load "00000000" into the LR

0001

shift the LR right by one position, fill from the left with a '0'

0010

shift the LR left by one position, fill from the right with a '0'

0011

add 1 to the LR

0100

subtract 1 from the LR

0101

invert all of the bits of the LR

0110

rotate the LR right by one position (rightmost bit becomes leftmost bit)

0111

rotate the LR left by one position (leftmost bit becomes rightmost bit)

1000

set LR to "10100101"

1001

shift the LR right by two positions, fill from the left with "00"

1010

shift the LR left by two positions, fill from the right with "00"

1011

jump to when PC = "01011"

1100

jump to when PC = "00100"

1101

take 2’s complement of the LR

1110

rotate the LR right by 4 positions

1111

jump to when PC = "01111"

 

In the process under the architecture of my lightsPlus, I added case statements to execute the proper action given the instruction table above.

 

The test display is the same as above.

longer lightrom.mp4

...