6502
play

6502 Akira Baruah Chaiwen Chou Phil Schiffrin Sean Liu Our Goals - PowerPoint PPT Presentation

6502 Akira Baruah Chaiwen Chou Phil Schiffrin Sean Liu Our Goals Initially set out to emulate the NES Implement the 6502 in SystemVerilog Synthesize the processor onto the FPGA Create software to interface with the processor


  1. 6502 Akira Baruah Chaiwen Chou Phil Schiffrin Sean Liu

  2. Our Goals Initially set out to emulate the NES ● Implement the 6502 in SystemVerilog ● Synthesize the processor onto the FPGA ● Create software to interface with the processor ● Load programs into memory and read output of the ● processor in a user program

  3. High Level design CPU - Contains control signals, registers, and wires ALU - Computes all arithmetic operations for CPU Memory - Basic read/write functionality

  4. Original block diagram Main changes: Single clock ● Control logic: Mealy finite ● state machine

  5. Architecture Control signals Combinational/sequential blocks

  6. Addressing Modes

  7. Top-Level Module user-level program binary sockit_test soc_system nes_ctrl memory cpu mem_in d_out mem_out d_in

  8. Quartus, Qsys, and the Software Interface Attempted kernel module for interfacing with hardware ● Hacky solution that worked for us: mmap to “/dev/mem” ● Created user-space program that writes into NES memory ● the contents of a binary file containing instructions for the processor 16 bits - top 8 bits for our own “opcodes”, bottom 8 for ● data

  9. Work FLow

  10. Lessons Learned Time management and planning is key ● Look for help early ● FPGA Board is very delicate ● Testing takes more time than you expect ●

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend