Altera_Forum
Honored Contributor
10 years agoQsys error : has write interface but no write control
Hi , I am trying to create a new component on Qsys , using my verilog code. The problem is that after I select the interfaces and the kind of signals , an error :"Has written interfaces but not write control" appear on component editor, and I don`t know how to fix it.
Anyone has some idea? http://www.alteraforum.com/forum/attachment.php?attachmentid=11113&stc=1module count_freq( clk, asi_clk_50, test_pin, camera_clk, reset, sel , count);
input clk, reset;
input asi_clk_50, camera_clk, test_pin;
input sel;
output count ;
reg count, count_next ,count_camera, count_camera_next, count_50, count_50_next, count_test_pin, count_test_pin_next ;
always@ (posedge camera_clk or posedge reset )
if (reset) count_camera<=0;
else count_camera<= count_camera_next;
always@ (posedge asi_clk_50 or posedge reset)
if (reset) count_50 <=0;
else count_50<=count_50_next;
always@ (posedge test_pin or posedge reset)
if (reset) count_test_pin <= 0;
else count_test_pin<= count_test_pin_next;
always@ (count_50 or sel)
if (sel==0) count_50_next= count_50+1;
else count_50_next= count_50;
always@ ( count_test_pin or sel)
if(sel==2) count_test_pin_next= count_test_pin+1;
else count_test_pin_next=count_test_pin;
always@ (count_camera or sel )
if (sel==1) count_camera_next= count_camera+1;
else count_camera_next=count_camera;
always@( posedge clk )
if( sel==0)
count<= count_50;
else if (sel==1)
count<= count_camera;
else if (sel==2)
count<= count_test_pin;