Section 7.4: Register Transfer Language (Frame 5)                     [prev][home][next]

The shifter's direction will be designed by using the C language's operators: << for shift left 1 bit and >> for shift right 1 bit.

A <- A << 1

The ALU can also pass through A or TMP unchanged. We will write either A or TMP on the right hand side of <- to indicate this. For example, if we wanted to copy TMP's value into A, we could write:

A <- TMP