Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Mouse coordinates PS2 by FPGA

Status
Not open for further replies.

bogdanb

Newbie level 3
Joined
May 16, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,303
I need to determine the coordinates of my mouse conecting with my FPGA and must display the coordinates on the 4 LEDs with 7 digits (2 LEDs for horizontal position and 2 for the vertical). I need a code (in Verilog)that determines the information containing the coordinates . Can someone help me with it and some ideas how can i structure the program. Thank you
 

In case you decide to write the code yourself - this page contains all info you'll need:
**broken link removed**
**broken link removed**
 

your information is usefull but i'm not a good programer in VHDL, i can't write the code myself and can't transform the information from VHDL to Verilog. i need the code direct in Verilog; is the code the same verilog as VHDL? my problem is at how to take the information containing the orizontal and vertical position and put it in a variable to display it using LEDs.
 

You just have to think in blocks. First you have to make a PS2 interface.. thats kind simple and you probably can find that on OPENCOREs, second follow the mouse protocol, to create a block that parse the data and save on a register. And finally you have a block that read that register and write on the display. Which of these blocks is your problem?
 

my problem is at how to implement the mouse and how to save in a variable the horizontal and vertical position,one for each , so at the first 2 blocks. If you have a code for the mouse interface i would love it. My main problem is at the mouse. I know something about working with LEDs but wit mouse i dont know nothing.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top