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

tv-decoder to web server

Altera_Forum
Honored Contributor II
1,398 Views

hello 

it is my first participation 

my project consist to acquirit signal from tv decoder(ADV7181) and display it to page web  

I have an example of a simple web server of altera but I want to change its  

Body Program 

is there a way to access to data from SRAM by nios ii ? 

if yes have you any c example program to do that i want to added it to my program principal? 

 

thanks
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
665 Views

Just allocate a buffer and use it. Either declare a fixed table, or use a malloc() call

0 Kudos
Altera_Forum
Honored Contributor II
665 Views

realy thanks for your answer and i'm sorry for multiposte 

 

please can you more explain because i m beginner ?
0 Kudos
Altera_Forum
Honored Contributor II
665 Views

hi 

after allocation of merory with malloc()  

what function I use to read data SRAM ? 

i can use simpl function like read() or there is special function to do that? 

thanks
0 Kudos
Altera_Forum
Honored Contributor II
665 Views

Just use pointers. 

This has nothing specific to the Nios platform, it is standard C.
0 Kudos
Reply