阅读:884回复:0
请问如何减少max3064中寄存器的使用
如何减少max3064中寄存器的使用
有以下一段程序,实现占空比不为50%的输出信号在quartus中编译的时候提示需要192 macrocells ,请问有没有好办法减少寄存器使用的? 谢谢 //************************************ always@(posedge clk_in or reset) begin if(reset==1) begin lowtime=10; hightime=100; hnumber=10; sgn_out=0; end else if(hnumber>0) if(sgn_out==0) if(lowtime>0) lowtime=lowtime-1; else begin lowtime=10; sgn_out=~sgn_out; //reverse output end else if (hightime>0) hightime=hightime-1; else begin hightime=100; sgn_out=~sgn_out; //reverse output hnumber=hnumber-1; //counter high output number end end |
|