Download Honours Project
Transcript
Chapter 2: Implementation of PicoBlazeTM with I/O ports interface Napier University Edinburgh 2.7. Simulation The VHDL code for the BGEPB1 system and the C-code test program at page 20 is simulated in ModelSim with a view on Inputs and outputs which are accessed via the FPGA connections. Read more about this option for the test bench simulation in chapter 7.3 at page 45. After reset of the FPGA the system will be initialized and will read and write to the ports as shown in figure 2.10, It is not possible to see the clock cycle in the simulation because one clock cycle is only 20nS and the simulation is shown from 0 to 25µS. after 4µS are the first data write out to the 16-bit address bus and afterwards the other ports will be written out after the structure in the code. Port 5 counts up, shown in the bottom of the simulation, and it will take only 6µS for each addition to the port. Figure 2.10 – Simulation of the program in ModelSim Benjamin Grydehoej (04007714) – BEng (Honours) Electronic and Computer Engineering - 21 -