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.

Controlling PS/2 keyboard and VGA display with Picoblaze

Status
Not open for further replies.

pezevall

Newbie level 4
Joined
Jun 6, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,329
picoblaze vga

Hi experts. I've started reading about Picoblaze for Spartan 3E board, since I am in the process of designing a functional calculator and I realized that is more gate-efficient to do it using Picoblaze (soft core) than using pure FPGA logic. I need to understand how can I interface this cpu core with external devices, like ps/2 keyboard (for entering data) ,display (vga for showing results) and memory. Any pointers or suggestions ?

Many thanks in advance
 

picoblaze vga controller

I have not used picoblaze but a quick look as its user guide reveals that it uses three ports for I/O communication, IN_PORT, OUT_PORT and PORT_ID which are 8-bit wide. If you have previous microcontroller programming experience then it can't get any simpler.

Basically you map your peripherals on PORT_ID address range. Say if you PS/2 controller is mapped at port address 0x10 then you can use simple combinational logic to talk to your PS/2 controller by writing/reading to port 0x10. You can extend this to a larger address space for your VGA controller like 0x11-0xff or something.

After you have mapped your peripherals, you basically set the PORT_ID and then issue input or output instructions that gets your data into the picoblaze processor.

For further reference see pg.51 of UG129(Picoblaze User Guide)

One quick suggestion though, if you have the time and resources then do implement it in full hardware as you'll learn quite a lot in doing so. Soft IP is rather easy to use compared to custom implementation. So depending on your interests and other factors. Make a decision early in the design.
 

can u pls help interfacing a ps/2 keyboard to spartan 3e fpga board??????????????
 
  • Like
Reactions: dsk_07

    dsk_07

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top