Download A Field-Programmable Prototyping Board - Courses
Transcript
10.4. Design and Implementation 117 10.4.3 R1: The I/O Port Since R1 is the only FPGA on the BORG board that is directly connected to the PC data bus, it had to be used for communicating with the PC. The I/O Port design is very simple and does not require much work. As can be seen in the MAZEPORT diagram on the following page, only the necessary signals are read o of the PC data bus. The I/O port reads from two dierent addresses from the PC. The rst is labeled PORTJ and it reads the two signals Your Move and On Exit, which are indications from the PC that it is the Maze Runner's turn to move and the hero is on the exit, respectively. The second address is labeled PORTK and it reads the eight signals corresponding to the surrounding cells' status. Note that even though the PC host program provides eight signals, the Maze Runner only reads four signals corresponding to North, South, East, and West. As for writing data to the PC host program, the Maze Runner sends four bits which are Move Ready, Move0, Move1, and Teleport. These signals communicate to the host program that the data for the next move is ready, the rst bit of the move , the second bit of the move, and the teleport request, respectively. The I/O Port schematic diagram is shown in Fig. 10.1. 10.4.4 X1: The Brain The choice for placing the brain of the Maze Runner in the X1 FPGA was made because X1 had to be used to connect the I/O Port with the Memory Controller FPGAs. Instead of just using it as a routing chip, it was used as the brain at the same time. The BRAIN FPGA consists of the main FSM driving the Maze Runner machine, I/O buers and pads, and some logic that is used primarily as an edge catcher which catches a 001 instead of 01. This logic ensures a true active signal and avoids any noise signals. The FSM of the BRAIN is called the BIGONE and it consists of the following parts: 1. Finder Box (FNDRBOX) 2. Mover 3. Memory Controller Signals (TOMEM) 4. Selector 5. Status 6. Direction Processing Logic The BRAIN and BIGONE schematic diagrams are shown in Figures 10.2 and 10.3. 10.4.5 Finder Box The Finder Box is simply the FSM that is used to nd the exit and to control the various instructions necessary to initialize the memory, move the hero, detect the exit, and teleport. Inside the Finder Box, the Finder part is the combinational logic for the state machine. The mustang description for the Finder is as follows: .i 9 .o 14 .s 5 --1------ ADD ADD 00-10010001-10