Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

ps/2 (mouse and key board)

Hello,

Does anyone have a Verilog ps/2 interface. I tried the pslab1

posted by John Loomis

http://www.johnloomis.org/digitallab/ps2lab1/ps2lab1.html but didn't work.

I used a "PS/2 to USB" and connected it to the DE2 board's USB. Then

complied the porject and didn't work!

Is this the correct way to do so? Please let me know..

Thanks

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Why didn't you use the DE2 PS2 connector? This is the only meaningful interface for this project,

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I didn't see it! now that I looked at the project closely it seems it is

    only for the keyboard and not the mouse as well.

    Thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, I wish to use the ps/2 port with DE1 board but I don't know where should I start. Which program I should use? Using HDL or SoPC builder? Is there any place I can get more information?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You'll find a PS2_KEYBOARD.v module in DE1 and DE2 demonstration projects. Also the project linked above has a PS2 decoder.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    1.I'm doing a project to build a dot matrix display which required to use keyboard to key in characters to my DE1 board. Is that a way so that I can related the code above with SoPC builder and NiosII?

    2. Is that possible if I build a PS/2 core using SoPC?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hai, i want to ask for help.

    from a book by pong p. chu

    it verilog code is separate in keyboard and mouse

    got any idea to join it together?

    because i doing my project.

    can email me in fox_hound85@hotmail.com

    thank
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi

    i cant use this PS2_KEYBOARD.v.

    can any body help me

    i am a new DE1 operator .

    tanks too.