Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12436 Discussions

Using Alpha Blending Mixer Megacore with Nios II

Altera_Forum
Honored Contributor II
780 Views

Hello, 

 

I've got a problem interfacing Nios II and the VIP suite, especially with the Alpha Blending Mixer Megacore. 

My problem is that I can't stop the mixer. Basically, I set the Go bit to '0' and then poll the status register to check the result. But it never goes down. 

 

Here is my function which is used to start and stop the megacore: 

 

alt_u32 ALT_VIP_FRAME_READER_GOBIT(alt_u32 vipBaseAddress, alt_u32 go){ 

 

alt_u32 status ; 

alt_u32 watchdog = 0x00; 

 

do{ 

IOWR(vipBaseAddress, ALT_VIP_FRAME_READER_CONTROL_REG, go); 

status = IORD(vipBaseAddress, ALT_VIP_FRAME_READER_STATUS_REG); 

watchdog++; 

while( (status != go) && (watchdog != TIMEOUT) ); 

 

return status; 

 

Do you see anything wrong with that method? 

 

Regards, 

Lionel.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
79 Views

By the way, I don't know if it's helpful but I'm using Quartus 12.0, Qsys and VIP suit 12.0. 

 

Thx
Reply