Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - TK simulation for 2-line LCD panel

 
Thread Tools Search this Thread
Old 06-30-2005, 12:20 AM   #1
Default TK simulation for 2-line LCD panel


Hi all

I was after a TK simulation for a common 2-line LCD panel that you
might find on FPGA development boards or the like. I want to plug it
into a VHDL simulation. (I am not so much of a hack that I cant get my
LCD working, I just want a more comprehensive testbench)

Thanks

Andrew



dwerdna
  Reply With Quote
Old 06-30-2005, 10:32 AM   #2
Juan C. Gil
 
Posts: n/a
Default Re: TK simulation for 2-line LCD panel
http://wiki.tcl.tk/11092 *might* help.

Juan Carlos---



Juan C. Gil
  Reply With Quote
Old 06-30-2005, 01:13 PM   #3
Jonathan Bromley
 
Posts: n/a
Default Re: TK simulation for 2-line LCD panel
On 29 Jun 2005 16:20:49 -0700, "dwerdna" <> wrote:

>I was after a TK simulation for a common 2-line LCD panel that you
>might find on FPGA development boards or the like. I want to plug it
>into a VHDL simulation. (I am not so much of a hack that I cant get my
>LCD working, I just want a more comprehensive testbench)


Juan Carlos's link shows how you could make a display. The
trickier problem, though, is how to get the data out to your
Tk display. One useful possibility is to get the VHDL simulation to
write the data to a file - then the Tk program can poll the file
and read newly added text out of the end of it. Even better is
to use a pipe interface from VHDL to Tk, but it's tough to get
VHDL to open a pipe or a socket.

Our polar-plot demonstration
http://www.doulos.com/knowhow/tcltk/...constellation/
shows a nice way to connect a Tcl/Tk visualisation program to
the ModelSim simulator so that the display shows you the data
that's under the waveform window's cursor. But a 2-line LCD
has internal state information, so that might be more difficult.
And our script works only for ModelSim, although in principle
it could be adapted for any simulator with a Tk front-end.

Our favourite way to do this stuff is to use VHDL text output
to the standard output channel. You can then hook a Tk
program to this channel. Get your VHDL to write a special
prefix to any line of text that should go to the LCD. Then
the Tk script can use any line with this prefix to update
an LCD visualiser, and other text can be displayed on a Tk
text widget and/or echoed to a transcript file by Tk.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL, Verilog, SystemC, Perl, Tcl/Tk, Verification, Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, BH24 1AW, UK
Tel: +44 (0)1425 471223 mail:
Fax: +44 (0)1425 471573 Web: http://www.doulos.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  Reply With Quote
Old 07-01-2005, 08:37 PM   #4
Hans
 
Posts: n/a
Default Re: TK simulation for 2-line LCD panel
If you are using Modelsim have a look at Tcl sockets for communications and
signalspy, examine and force commands for communication with your DUT. Note
that TK is only supported on Modelsim SE, however, Activestate makes a great
free Tcl/TK interpreter,

Hans.
www.ht-lab.com


"dwerdna" <> wrote in message
news: oups.com...
> Hi all
>
> I was after a TK simulation for a common 2-line LCD panel that you
> might find on FPGA development boards or the like. I want to plug it
> into a VHDL simulation. (I am not so much of a hack that I cant get my
> LCD working, I just want a more comprehensive testbench)
>
> Thanks
>
> Andrew
>





Hans
  Reply With Quote
Old 07-02-2005, 08:53 AM   #5
dwerdna
 
Posts: n/a
Default Re: TK simulation for 2-line LCD panel
Hi all

Thanks for your comments and ideas, I will look into them. Yes I have
opened up files to write to from the simulator before, and that is what
I was originally envisaging would have to be done for this too.

Thanks again

Andrew



dwerdna
  Reply With Quote
Old 07-02-2005, 08:54 AM   #6
dwerdna
 
Posts: n/a
Default Re: TK simulation for 2-line LCD panel
Hi all

Thanks for your comments and ideas, I will look into them. Yes I have
opened up files to write to from the simulator before, and that is what
I was originally envisaging would have to be done for this too.

Thanks again

Andrew



dwerdna
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 line phone switch chrisredding Hardware 0 10-06-2006 09:31 PM
SONY DVD RW DW-G120A SOMETIMES FAILS...... atlantic965 DVD Video 0 06-18-2006 10:36 PM
problems backing up dvds Lawrence Traub DVD Video 11 09-27-2005 07:34 PM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 09:24 PM
Pioneer A05 Problems Bill Stock DVD Video 8 11-28-2003 05:03 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46