【提问】想使用芯片内部OSC震荡-Anlogic-安路论坛-FPGA CPLD-ChipDebug

已解决想使用芯片内部OSC震荡

        想使用芯片内置环形振荡器,如何切到内置OSC振荡器OSC_CLK如何与clk连接上?  下面是我写的代码,全是单片机思路写的不好,求大佬帮我把代码补全.

module led(

input clk,

output reg led);

reg[24:0] cnt;

always@(posedge clk) //上升沿

begin

if(cnt==5_000_000) //0.5秒

cnt <=0;

// led=~led;

else

cnt =cnt +1;

end

always@(cnt==0)

begin

if(cnt==0)

led=~led;

else;

end

endmodule
请登录后发表评论

    • ICMaker的头像-ChipDebugICMaker徽章-人气大使-ChipDebug等级-LV2-ChipDebug版主0
      • 34af9uc的头像-ChipDebug34af9uc徽章-初出茅庐-ChipDebug等级-LV1-ChipDebug作者0
        • ICMaker的头像-ChipDebugICMaker徽章-人气大使-ChipDebug等级-LV2-ChipDebug版主0
          • 34af9uc的头像-ChipDebug34af9uc徽章-初出茅庐-ChipDebug等级-LV1-ChipDebug作者0
    • ICMaker的头像-ChipDebugICMaker徽章-人气大使-ChipDebug等级-LV2-ChipDebug版主0