The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 4:28am
Pages: 1
Send Topic Print
image processing (Read 1865 times)
godfather
Community Member
***
Offline



Posts: 36

image processing
Feb 21st, 2009, 3:27pm
 
how do i read a image in verilog-ams.
Back to top
 
« Last Edit: Feb 21st, 2009, 4:56pm by godfather »  
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: image processing
Reply #1 - Feb 22nd, 2009, 11:18am
 
If you want to do it directly, you'd have to write a VPI (Verilog Programming Interface) function to do it - i.e. write some C/C++ code and then pass the information to the simulator.  I'd be surprised if any mainstream simulators have this as a built-in function.

Alternatively you could use the $readmemh function, but you'll have to convert the data to something suitable.

Or you could do a co-simulation between AMS Designer (Cadence's AMS simulator) and Simulink, say.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.