Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Fun with interfacing GHDL

Thread Tools

Fun with interfacing GHDL

Posts: n/a

I have recently written "interesting code" that
is useful, reusable and has useful properties,
so here I want to share my results. They have
all been developed for Linux, Little Endian, 32-bit
and ease the development work or enhance the
capabilities of GHDL. Most use the VHPIDIRECT
to interface with some C code.

The code can be found there : :
adds a "getenv" function that reads
the requested environment variable and returns an integer
(strings are too complex to pass back from C) :
generate a "real time clock", which helps slowing
down a simulation. The clock period is given as a
generic in milliseconds, though the system calls
will easily round up this if you're not careful.
It's quite useful if you want to synchronise a
testbench at a few Hz. :
it's a scalable 4-xor LFSR, from 5 taps to 786,
very handy to have. :
adds a simple and nicely working interface
to the Linux framebuffer in 32-bit mode (RGBA).
It needs to be enhanced in the future but it's
powerful enough for doing nice pictures like this
demo :

Have fun,

-- /
Reply With Quote

Thread Tools

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OT Thursday, uh, fun, yeah, fun! Consultant MCSE 17 02-10-2007 03:39 AM
3 PIX VPN questions - FUN FUN FUN Cisco 3 03-16-2006 02:25 PM
OT: Wednesday follow-up-to-Tuesday-Fun Fun Ken Briscoe MCSE 0 07-14-2004 01:41 PM
Programming is not as much fun/more fun than it used to be. Andy Fish Java 65 05-18-2004 08:24 PM
Fun fun fun Luke Computer Support 3 10-07-2003 03:45 PM