Skip to content

This repository contains a PS2 keyboard interface designed for FPGA boards.

License

Notifications You must be signed in to change notification settings

jovan-vukic/ps2-keyboard-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


PS2 Keyboard FPGA Interface - Jovan Vukić

The project, made in the Verilog language, implements the necessary code for interfacing with a standard PS2 keyboard.
Explore the project »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact
  6. Acknowledgments

About The Project

The project, made in the Verilog language, implements the code for interfacing with a standard PS2 keyboard.

The code was tested by synthesizing it on a Cyclone III FPGA board. After the synthesis:

  • when a key is pressed on the connected keyboard, the four seven-segment displays will show the last two bytes of the generated make code as long as the key is pressed,
  • if the pressed key is released, the four seven-segment displays will show the last two bytes of the generated break code.

(back to top)

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

To set up the project, you will need to:

Usage

Setup & execution:

  1. Clone the repo:

    git clone https://github.com/jovan-vukic/ps2-keyboard-interface
  2. Open the terminal in VS Code and type the following:

    C:/"Program Files"/altera/13.0sp1/quartus/bin/cygwin/bin/bash
  3. Change the current folder to the tooling folder:

    cd tooling
  4. Type the following to start the testbench_verification_uvm.sv test:

     ./xpack/bin/make simul_run
  5. Type the following to synthesize the ps2.v module on the connected Cyclone III FPGA board:

     ./xpack/bin/make synth_pgm
  6. To get the additional make tool options type into the terminal in VS Code:

     ./xpack/bin/make help

Important Note

The PS2 keyboard specifications include three Scan Code Sets.

  • Scan Code Set 1 is the old XT mode rarely available on keyboards.
  • Scan Code Set 2 is the default Scan Code Set guaranteed to work.
  • Scan Code Set 3 is even rarer to find.

It should be noted that this implementation only supports PS2 Scan Code Set 2.

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.md for more information.

(back to top)

Contact

Jovan - @jovan-vukic

Project Link: https://github.com/jovan-vukic/ps2-keyboard-interface

(back to top)

Acknowledgments

Used resources:

(back to top)

About

This repository contains a PS2 keyboard interface designed for FPGA boards.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published