YeeEe
驱动牛犊
驱动牛犊
  • 注册日期2003-01-17
  • 最后登录2003-06-16
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:882回复:0

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

楼主#
更多 发布于:2003-06-12 11:00
  如何减少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
游客

返回顶部