Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20735 Discussions

Fusion an Display with FPGA

Altera_Forum
Honored Contributor II
2,005 Views

hello, 

 

I am trying to display a fusion of 2 cameras on PC Screen. I can display a image of each camera on screen. a Fusion is a simply Addition of two Pixel Grayvalue. 

 

that problem is my Screen cannot show correctly the fusion image. 

 

could someone give me some idea to resolve that? 

 

thank u!
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
555 Views

Depends on how you add the signals. If the cameras aren't operating sync locked, both images must be stored in a frame buffer before.

0 Kudos
Altera_Forum
Honored Contributor II
555 Views

You need to average the inputs, not simply add them. Simply adding will cause a lot of saturation.

0 Kudos
Altera_Forum
Honored Contributor II
555 Views

 

--- Quote Start ---  

Depends on how you add the signals. If the cameras aren't operating sync locked, both images must be stored in a frame buffer before. 

--- Quote End ---  

 

 

thank you for this answer, now i am trying to realize a Framebuffer, i have a RAM with 1,152000 bit, for the a picture with the resolution 480 X 640 and 16 bit Color. 

 

It is possible to realize a framebuffer? 

 

I have readed somewhere that for VGA 480 X 640 X 16 i need 150 KB framebuffer........
0 Kudos
Altera_Forum
Honored Contributor II
555 Views

For a frame buffer you will need external ram.

0 Kudos
Altera_Forum
Honored Contributor II
555 Views

 

--- Quote Start ---  

For a frame buffer you will need external ram. 

--- Quote End ---  

 

can you explain me why?
0 Kudos
Altera_Forum
Honored Contributor II
555 Views

I tell a lie 

 

It will depend on what device you are using. Older devices wont have enough. But even with newer ones, with all the losses due to innefficient memory implementation you wont have much memory left after you've put your frame buffer in. 

 

What device are you using?
0 Kudos
Altera_Forum
Honored Contributor II
555 Views

for reference: 

 

1 M9k can store 512 x 16 bit data words. 

Therefore, with a basic and easy addressing scheme at 640 pixels per line and 480 line you need 

 

2x M9k per line 

480 lines 

 

= 960 x M9k. 

 

The largest Arria 2 device has 950 

largest Cyclone 4 has 720 

Stratix 4 has about ~1000 to 1200 M9Ks but also has larger M144ks 

 

So a simple addressing scheme wont do. Even if you made the addressing more efficient, you're going to lose >50% of your internal memories to a frame buffer. 

 

Lesson - any large data dumps are usually best done off chip.
0 Kudos
Altera_Forum
Honored Contributor II
555 Views

 

--- Quote Start ---  

I tell a lie 

 

It will depend on what device you are using. Older devices wont have enough. But even with newer ones, with all the losses due to innefficient memory implementation you wont have much memory left after you've put your frame buffer in. 

 

What device are you using? 

--- Quote End ---  

 

 

Thank u for ur answer iam using a Cyclone 2
0 Kudos
Altera_Forum
Honored Contributor II
555 Views

 

--- Quote Start ---  

Thank u for ur answer iam using a Cyclone 2 

--- Quote End ---  

 

 

Then you have no chance of using internal RAM for a frame buffer. You have to use external ram.
0 Kudos
Reply