generating VHDL code from Matlab code for DSP - wavelet image compression

Is there a way of generating VHDL code from Matlab code for DSP, more
precisely image processing using wavelet transform?
I want to implement a small 8X8 image processing layout that will use
wavelet transform and it is not easy to come up with the VHDL code for
that. Any help would be highly appreciated!
Thanks,
Dan

> Is there a way of generating VHDL code from Matlab code for DSP, more
> precisely image processing using wavelet transform?
> I want to implement a small 8X8 image processing layout that will use
> wavelet transform and it is not easy to come up with the VHDL code for
> that. Any help would be highly appreciated!

If you're targetting Xilinx AccelDSP may be of use.

Otherwise, write a spec, and give it to a human VHDL-code-generator
:-)

You don't say how fast you need it to run and on what image sizes -
this may affect the feasibility of the conversion.

Re: generating VHDL code from Matlab code for DSP - wavelet image compression

On Feb 7, 6:51 am, Martin Thompson <[email protected]> wrote:
> "EEngineer" <[email protected]> writes:
> > Is there a way of generating VHDL code from Matlab code for DSP, more
> > precisely image processing using wavelet transform?
> > I want to implement a small 8X8 image processing layout that will use
> > wavelet transform and it is not easy to come up with the VHDL code for
> > that. Any help would be highly appreciated!
>
> If you're targetting Xilinx AccelDSP may be of use.
>
> Otherwise, write a spec, and give it to a human VHDL-code-generator
> :-)
>
> You don't say how fast you need it to run and on what image sizes -
> this may affect the feasibility of the conversion.
>
> Cheers,
> Martin
>
> --
> [email protected]
> TRW Conekt - Consultancy in Engineering, Knowledge and Technologyhttp://www.conekt.net/electronics.html

I am interested in image processing of 128x128 image using wavelet
transform compression, 12 bits per pixel, monochrome.
Thanks,
Dan

Re: generating VHDL code from Matlab code for DSP - wavelet image compression

"Martin Thompson" <[email protected]> wrote in message
news:[email protected]
> "EEngineer" <[email protected]> writes:
>
>> Is there a way of generating VHDL code from Matlab code for DSP, more
>> precisely image processing using wavelet transform?
>> I want to implement a small 8X8 image processing layout that will use
>> wavelet transform and it is not easy to come up with the VHDL code for
>> that. Any help would be highly appreciated!
>
> If you're targetting Xilinx AccelDSP may be of use.
>

Another solution could be to use Catalytic MCS which translate M-code to
"Catapult compatible C" followed by Catapult which synthesises the code to
VHDL. These are professional tools and as such come with the usual price tag
:-)

> Otherwise, write a spec, and give it to a human VHDL-code-generator
> :-)
>
> You don't say how fast you need it to run and on what image sizes -
> this may affect the feasibility of the conversion.
>
> Cheers,
> Martin
>
> --
> [email protected]
> TRW Conekt - Consultancy in Engineering, Knowledge and Technology
> http://www.conekt.net/electronics.html
>
>

Re: generating VHDL code from Matlab code for DSP - wavelet image compression

On Feb 8, 4:40 am, Martin Thompson <[email protected]> wrote:
> "EEngineer" <[email protected]> writes:
> > I am interested in image processing of 128x128 image using wavelet
> > transform compression, 12 bits per pixel, monochrome.
>
> At what sort of frame rate?
>
> Cheers,
> Martin
>
> --
> [email protected]
> TRW Conekt - Consultancy in Engineering, Knowledge and Technologyhttp://www.conekt.net/electronics.html

> On Feb 8, 4:40 am, Martin Thompson <[email protected]> wrote:
>> "EEngineer" <[email protected]> writes:
>> > I am interested in image processing of 128x128 image using wavelet
>> > transform compression, 12 bits per pixel, monochrome.
>>
>> At what sort of frame rate?
>>
>> Cheers,
>> Martin
>>
>> --
>> [email protected]
>> TRW Conekt - Consultancy in Engineering, Knowledge and Technologyhttp://www.conekt.net/electronics.html
>
> Frame rate expected is 30fps.
>

That doesn't terribly fast for that small size of image, only 0.5M
pixels/sec. You can get a lot done in an FPGA in the length of time
one pixel takes to comes along (assuming they're evenly spread of the
time of course!).

Re: generating VHDL code from Matlab code for DSP - wavelet image compression

> > "EEngineer" <[email protected]> writes:
> > > I am interested in image processing of 128x128 image using wavelet
> > > transform compression, 12 bits per pixel, monochrome.

> Frame rate expected is 30fps.

128x128x30 fps should be trivial to implement "by-hand" ... That's 0.5
Msamples/s
The resources will depend on how much effort you're willing to put ...
But even with a "dumb" architecture that should fit in almost the
smallest FPGA. There are several paper on how to implement them and
even the simplest one (i.e., your pipeline is basically the lifting
steps of the wavelet) should fit your purposes.

In a Virtex4 SX35 we do a 5 level 9/7 daubechie 4096x2048 50fps 3
components, that's 1250 Msamples/s
That requires slightly more attention