Projek ini adalah bertujuan untuk menghasilkan satu contoh dasar bagi peranti masukan dan keluaran lapan bit dengan menggunkan FPGA. Peranti masukan keluaran yang dihasilkan akan mempunyai fungsi yang sama dengan mod 0 bagi cip masukan keluaran 8255 yang sudah berada dipasaran. Peranti masukan keluaran yang dihasilkan terdiri daripada tiga port masukan dan keluaran 8 bit. Setiap port boleh melakukan fungsi baca atau tulis bergantung kepada perkataan kawalan yang diberikan kepadanya. Peranti ini boleh diantaramuka dengan papan mikropengawal 8051. Tujuan utama peranti masukan keluaran 8 bit ini dibina adalah untuk menambahkan bilangan port masukan dan keluaran bagi mikropengawal 8051. Didalam projek ini FPGA telah digunakan dalam penghasilan peranti masukan dan keluaran lapan bit. Jenis FPGA yang digunakan adalah xilinx 4010XLPC84 dibawah keluarga XC4000XL. Ia telah digunakan didalam projek ini kerana dapat mengurangkan kos dan masa bagi penghasilan rekabentuk litar. Kod VHDL pula telah digunakan untuk mengawal kelakuan bagi papan FPGA. Teknik perihalan kelakuan telah digunakan didalam menulis kod VHDL. Litar yang telah siap direkabentuk seterusnya diuji dengan papan mikropengawal 8051 untuk memastikan rekabentuk yang telah dihasilkan adalah sah. Di dalam rekabentuk ini sebanyak 11% CLBs dan 58% IOBs telah digunakan. Nilai lengah maksimum bagi peranti ini pula adalah sebanyak 41.596 ns. Hasil bagi projek ini adalah sebuah peranti yang boleh menerima atau mengeluarkan sebanyak 8 bit data kepada mikropengawal 8051.
______________________________________________________________________________________
The purpose of this project is to design a prototype of an eight bits input output device based on FPGA. The input output device will have the same function as mode 0 of the
8255 input output chip that is already in the market today. The prototype contain three eight bits accessible ports ( port A, B and C ). Each port can be programmed to write or read data depends on the control words given to the device. The eight bits input output device can be interface with the 8051 microcontroller to increase the number of input and output port capability of the microcontroller. In this project, FPGA and VHDL code are used to design the prototype. XC4010XLPC84 is used as a demo board. It is one of the FPGA in XC4000XL series and produce by xilinx. The main reason of using xilinx FPGA is because it can significantly reduces cost and time of circuit design process. VHDL code is used to define the behavior of FPGA. Behavioral description technique is used to write the VHDL code for each macro. The circuit that had been design are tested by using microcontroller board. Testing process is important to determine the functionality of the circuit. In this design, 11% CLBs and 58% IOBs had been used from the FPGA. There are redundant CLBs and IOBs that can be used to improve the circuit in the future. The maximum delay for the entire device is 41.596 ns. The result of this project is a device that can be use to read or write, 8 bits of data from the 8051 microcontroller.