Correctly handle the case of two loopback connections to the same port.
Fix handling of timed input used to change port direction.
Add SDRAM peripheral.

This is based on the IS42S16400F ISSI SDRAM.
Merge pull request #13 from rlsosborne/sdram

Add SDRAM peripheral