//clock 50MHz change to 25Mhz
always @(posedge clk)
begin
Dclk=~Dclk;
ADJ <= 1;
end
always @(posedge Dclk)
//--------------------------------------------
if (hcount<HP)
begin
if (hcount<HBK) DE<=0;
else if(vcount<VBK) DE<=0;
else DE<=1;
hcount=hcount+1;
end
else
begin
hcount<=0;
vcount=vcount+1;
if (vcount>=VP) vcount<=0;
end
//--------------------------------------------
reg [23:0]delay_key;
reg key_stop;
reg [3:0]key_count;
always @(posedge Dclk)
begin
if (!k)
begin
led7=1;
if (!key_stop)
begin
if(delay_key>24'd8000000)
begin
key_stop=1;
key_count=key_count+1'b1;
if (key_count>4) key_count=4'b0;
end
else
delay_key=delay_key+1;
end
else
delay_key=0;
end
else
begin
led7=0;
key_stop<=0;
end
case (key_count)
0:
begin
Out_Color_R[0:5]<=6'b111111;
Out_Color_G[0:5]<=6'b000000;
Out_Color_B[0:5]<=6'b000000;
end
1:
begin
Out_Color_R[0:5]<=6'b000000;
Out_Color_G[0:5]<=6'b111111;
Out_Color_B[0:5]<=6'b000000;
end
2:
begin
Out_Color_R[0:5]<=6'b000000;
Out_Color_G[0:5]<=6'b000000;
Out_Color_B[0:5]<=6'b111111;
end
3:
begin
Out_Color_R[0:5]<=6'b111111;
Out_Color_G[0:5]<=6'b111111;
Out_Color_B[0:5]<=6'b111111;
end
4:
begin
Out_Color_R[0:5]<=6'b000000;
Out_Color_G[0:5]<=6'b000000;
Out_Color_B[0:5]<=6'b000000;
end
endcase
end
endmodule作者: vaxgame 时间: 2011-6-22 17:38
各位!我終於發現是哪裡有問題了!
Settings->Device->Device and Pin Option->Configuration 中,將Generate compressed bitstreams 選項取消,就可以直接用AS燒錄POF檔了! 謝謝!