导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→请问如何减少max3064中寄存器的使用

* 34143: 请问如何减少max3064中寄存器的使用

   YeeEe 
YeeEe发表的帖子 

 请问如何减少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
//*********************** 


发表时间:2003年6月12日10:48:33

  
回复该帖

本主题共有 1 帖,分页:>>>>>该主题的所有内容[1]条

 *树形目录 只列出部分跟帖的标题以及简单的摘要信息 该主题的部分跟帖如下:

[上一篇帖子]:RB.1/.2和0805电容的分装形式有什么不一样?RB.1/.2和0805电容的分装形式有什么不一
[下一篇帖子]:我觉得不可能是0809芯片的问题除非有那么不幸: 这位兄弟用的那一片恰好是个毛片