Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

input files

Altera_Forum
Honored Contributor II
1,370 Views

hi, i'm not sure i m in the right forum discussion but i ll ask anyway. 

first of all i want to make it clear that all this fpgas is very new to me, so please don't make fun of me if im asking something stupid:D . 

i am trying to implement an algorithm based on image processing, and the first step is to calculate the histogram. im supposed to do that on quartus ii 5.1 schematic based. so i want to create some sort of input file to stream into my circuits the pixel values (Y) of an VGA 640x480 image (raster scan). i don't want to use memories (that would be to painful!). is there some thing like the m.i.f. file for my case? 

Any help would be really appreciated !!! im on a deadline!
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
675 Views

MIF is a memory initialization file, so you don't want to use that if you aren't using memory. What a MIF file would do for you is pre-load a memory block with a known pattern during configuration (start-up). If you are not already on this track, it sounds like what you want to do is open a schematic page and put down a couple simple blocks. The schematic file type is bdf, for block diagram. If you are looking to do something realy simple, like a multiplier, you can open one of these files, put down a couple input and output connections, and drop a multiplier down, and wire them together. This is similar to the lab exercises Altera has new users do to get familiar with the tool. If I'm address the wrong question, feel free to elaborate.

0 Kudos
Altera_Forum
Honored Contributor II
675 Views

Randall, first off all thank you for replying! the thing with my problem is that i have to design a histogram generator. this means i need to have 300700 pixel values( varying from 0-255 ,8bit) and count how many of them appear with the same value. for example if there are 10.000 pixels with intensity value 200 i must somehow be able to count them, probably with accumulators. the thing is, that i can't write manually 300700 values in the waveform vector file(one for every clock cycle), so i thought there might be a way to insert some random values from a text file or something.

0 Kudos
Altera_Forum
Honored Contributor II
675 Views

 

--- Quote Start ---  

... i can't write manually 300700 values in the waveform vector file(one for every clock cycle), so i thought there might be a way to insert some random values from a text file or something. 

--- Quote End ---  

 

 

 

If you can accomplish what you want with simulation (that's what a .vwf file is for), you can easily overwrite a signal with random values with one every clock cycle in the Quartus native simulator. But I think your fundamental need is more complicated than that.
0 Kudos
Altera_Forum
Honored Contributor II
675 Views

I don't think I am reading your requirements correctly. You want to design logic that samples an 8 bit data input, right? Then you need to generate a histogram of the number of occurances of each value possible for the 8 bit data input, right? Then you want to keep a separate histogram for each pixel (in a 2D array of pixels), which means no pixel grouping. So you will end up with 256 result numbers for each pixel, which implies no input vlaue binning. And how many pixels do you want to generate a histogram for? 

 

or - are you trying to generate a simulation stimulus ?
0 Kudos
Altera_Forum
Honored Contributor II
675 Views

Hi friends,  

 

Also I'm working now in an image processing application in which I have to implement a 2-D histogram. 

 

I'm planning to use DSPBuilder/Simulink tools and Video & image processing suite. 

 

Could you give me any suggestion or example model in order to do that? 

 

Many thanks in advance.
0 Kudos
Reply