FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-2004, 03:51 AM
Jason Crawford
Guest
 
Posts: n/a
Default PS/2 Keyboard opencore (keyboard side) available ???

Hi,

I want to make a custom PS/2 keyboard.

I have a Xilinx SpartanII part on my custom keyboard and I am
looking to implement a PS/2 keyboard interface so that I can
plug my custom keyboard into a standard PC PS/2 port.

Googling for an opencore has so far been fruitless.

I've tried opencores.org, but they only have a PS/2 keyboard interface
that would be implemented on the host side (not keyboard side).

Verilog is my preferred HDL.

Thanks for any help,
Jason.

Reply With Quote
  #2 (permalink)  
Old 02-05-2004, 10:23 AM
Allan Herriman
Guest
 
Posts: n/a
Default Re: PS/2 Keyboard opencore (keyboard side) available ???

On Thu, 5 Feb 2004 05:50:58 -0800, "Antti Lukats" <[email protected]>
wrote:

>"Jason Crawford" <[email protected]> wrote in message
>news:1075949641.602326@sj-nntpcache-3...
>> Hi,
>>
>> I want to make a custom PS/2 keyboard.
>>
>> I have a Xilinx SpartanII part on my custom keyboard and I am
>> looking to implement a PS/2 keyboard interface so that I can
>> plug my custom keyboard into a standard PC PS/2 port.
>>
>> Googling for an opencore has so far been fruitless.

>
>there is possible no keyboard side core available as it is not a very comman
>thing to have


It's also not commonly done in an FPGA.
Most PS/2 keyboards use a mask programmed 8048, although I did once
find one (from Fujitsu) that used a mask programmed 6805.

If you really must use an FPGA, you could probably write the code in a
few minutes, once you find a reference to the protocol
... googling ...
http://govschl.ndsu.nodak.edu/~achap...ro/PS2/ps2.htm
or
http://www.networktechinc.com/ps2-prots.html
http://www.networktechinc.com/technote.html

Regards,
Allan.
Reply With Quote
  #3 (permalink)  
Old 02-05-2004, 12:04 PM
Kolja Sulimma
Guest
 
Posts: n/a
Default Re: PS/2 Keyboard opencore (keyboard side) available ???

Jason Crawford <[email protected]> wrote in message news:<1075949641.602326@sj-nntpcache-3>...

> I have a Xilinx SpartanII part on my custom keyboard and I am
> looking to implement a PS/2 keyboard interface so that I can
> plug my custom keyboard into a standard PC PS/2 port.
>
> Googling for an opencore has so far been fruitless.
>
> I've tried opencores.org, but they only have a PS/2 keyboard interface
> that would be implemented on the host side (not keyboard side).


Build one yourself.
To receive the codes is more complicated then sending them and in a
lab course I teach it takes my students about four hours to build a
PS2 receiver.
So a sender should be no problem.

The protocol is described here:
http://govschl.ndsu.nodak.edu/%7Each...ro/PS2/ps2.htm

The scancodes are here
http://govschl.ndsu.nodak.edu/%7Each...cancodes2.html

For most keys you just have to shift out one byte when the key is
pressed and two bytes when it is released.

I expect that interpreting whatever it is that you use for your keys
is a lot more complicated then the PS2 part which I estimate at 10
lines VHDL at most.
(Plus any FIFOs that you might want to add)

Kolja Sulimma
Reply With Quote
  #4 (permalink)  
Old 02-05-2004, 02:50 PM
Antti Lukats
Guest
 
Posts: n/a
Default Re: PS/2 Keyboard opencore (keyboard side) available ???

"Jason Crawford" <[email protected]> wrote in message
news:1075949641.602326@sj-nntpcache-3...
> Hi,
>
> I want to make a custom PS/2 keyboard.
>
> I have a Xilinx SpartanII part on my custom keyboard and I am
> looking to implement a PS/2 keyboard interface so that I can
> plug my custom keyboard into a standard PC PS/2 port.
>
> Googling for an opencore has so far been fruitless.


there is possible no keyboard side core available as it is not a very comman
thing to have

I would personally probably do it a little tweaking, putting a PicoBlaze
processor onto the FPGA
it takes one Block RAM and about 70 Slices. It does fit into any spartan. So
you can use it
even in XC2S15. Even though a simple PS2 SIE (serial interface engine)
itself is smaller than
PicoBlaze then if you add full keyboard control status leds etc.. I think
you will end up in similar
Slice count or more.

antti


Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard input help Rishi Dhupar Verilog 3 08-14-2006 03:55 PM
Simple PS/2 Keyboard John Verilog 8 06-01-2004 05:43 PM
Added Keyboard controller to C-NIT Sumit Gupta FPGA 3 09-23-2003 10:17 PM


All times are GMT +1. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved