Will’s Status Report for 2/7

This Week:

I spent this week researching protocols and  implementing + testing SystemVerilog modules to interface with a PS/2 keyboard and VGA monitor.  Some time was also spent researching floppy disk protocols in preparation for the next two weeks.

I found that there are various different PS2 protocol versions that exist, making it infeasible to make a PS2 driver that is compatible with all existing versions.  To remedy this, I focused on implementing the most common version of the protocol used in keyboards (detailed here). Most available PS2 keyboards only require device-to-host communication, which made implementing the module relatively simple. The device-to-host-only (DTHO) PS2 module I wrote has already been tested in synthesis and can interface with a PS2 keyboard lent to our group by Prof. Nace.

In addition to this DTHO module, I have also implemented a module capable of both device-to-host and host-to-device communication. This bidirectional communication module has been tested and shown to function in simulation, but has not yet been tested on an FPGA because I do not have access to a keyboard that requires host-to-device communication.

For VGA, I was able to quickly implement a working SystemVerilog module using code I had previously written with some small changes. The VGA module was tested in synthesis and is able to interface with a VGA monitor without any issues. Additional graphics mode modules will likely have to be added to this one once the 6502 and DOS are more developed.

Schedule:

After all of the work completed this week I am on or slightly ahead of schedule. There are no immediate concerns about the current pace of the project.

Next Week’s Plan:

Next week, I plan to add some additional functionality to the modules I have already written as well as start to implement the floppy disk module. By the end of next week there should be a minimally functional module to interface with a floppy disk drive as well as some simulation testing/waveform analysis.

Aaron’s Status Report for 2/7

This week, I worked on setting up the testing infrastructure for the 6502. I created the testbench, as well as set up the assembler for test programs. I also discussed the processor design with Rudy. For the processor itself, we first decided to simplify the design by removing certain components we deemed unnecessary. We also decided to divide up microinstructions based on addressing mode.

Currently, we am on schedule. I am currently working through the 6502 processor with Rudy, which is expected to take 2 more weeks.

We would like to have a complete 6502 processor by next week. This will involve finishing up designing our implementation, then actually coding it up, which we intend to have done by the next week. Additionally, I would like to expand write more test cases next week to expand the amount of tests we can run.

Team Status Report for 2/7

Writing the 6502 provided us a bit more complications than initially expected, which are described in Rudy’s status report for this week. However, since writing the 6502 was scheduled to take 3 weeks, we are still on time for this goal. These complications resulted in a discussion between Rudy and Aaron to create a plan for the redesign of the 6502, making it compatible with the requirements of a FPGA. Below are the steps we’ve decided are necessary for the redesign:

  1. Determining microinstructions for each addressing mode, this will translate into control signals
  2. Deciding necessary hardware for the functionality for each instruction, such as addition and register transfers
  3. Listing out all possible inputs into each register
  4. Translate these hardware requirements into a block diagram
  5. Translate block diagram into Verilog

For the 6502 testbench, we have set up a very basic testbench to run simulations when we start writing the Verilog. However, the only test programs we can currently run are pre-existing ones. Thus, we are also currently setting up a way to compile C code, so that we can run other benchmarks.

Currently, we appear to be on track and no significant risks pose themselves. However, if things go on a downturn with the 6502 redesign, there is a mitigation plan of using an open-source 6502 core.

Beyond the 6502, researching and implementing the FDD module may prove to be challenging. The original motherboard of the Apple ii needed an additional control card to interface with the Disk-ii floppy disk drive. Most of the functionality of the control card can be implemented on FPGA, but some additional hardware (breadboard, MOSFET, power supply, etc.) will be needed to drive the stepper motors. If it is not possible to recreate the control card using our FPGA, there is an FDD control card emulator that we can buy and use instead.

No schedule update has occurred.