Forum Discussion
Altera_Forum
Honored Contributor
14 years agoi havent used a for loop in verilog before but this link shows you how to
http://www.asic-world.com/verilog/verilog_one_day2.html you have to save your verilog module in the same project that you created your processor. after that you can right click on that file in the files tab and select 'create symbol for this file' after that you can use that symbol in the bdf editor just as any other module.(double click on the bdf editor and your module should be in the project folder) as for sending data from your processor to your verilog module is tricky. what you can do is add a 16bit PIO device to your processor and send data through it integer by integer. Because it is very impractical to send the whole array at once. if i understood your program right what you can do is create two 16bit PIO devices and send line1 and line2 separately two at a time. and write your verilog to process data as it comes in. This way you dont need a for loop in your verilog