Re: VHDL testbench: read BMP Files?

Discussion in 'VHDL' started by Allan Herriman, Aug 21, 2003.

  1. If using a simulator that supports Tcl/Tk, it might be possible to use
    the Tcl/Tk Img package that can read an image file (.bmp, .gif, .jpg,
    whatever) into a pixmap image type. This can then be fed pixel by pixel
    into the testbench.
    I think this may be easier than trying to decode (or generate) the
    various file formats in VHDL.

    http://aspn.activestate.com/ASPN/docs/ActiveTcl/ActiveTcl8.4.1.0-html/img/index.htm

    Regards,
    Allan.
     
    Allan Herriman, Aug 21, 2003
    #1
    1. Advertisements

  2. Better still, you can use Tk to display the "Before" and "After" images
    directly from your simulator.

    Allan.
     
    Allan Herriman, Aug 21, 2003
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.