求助:用FPGA产生脉冲波形的方法


5楼
这个思路是正确的。
你是初学VHDL吗?如果时间不紧的话,还是先学学语法,再写吧
我用Verilog的,VHDL已经很久没写,都忘了。

6楼
为什么还在用MAX+PLUS 2呢?Altera都放弃对MAX+PLUS 2的支持了
换 Quartus II吧
换 Quartus II吧


10楼
signal cnt:integer range 0 to 255:=0;
process(clk,rst_n)
begin
if clk'event and clk='1' then
cnt<=cnt+1;
if cnt>=0 and cnt<=127 then
pwm<='1';
else
pwm<='0';
end if;
end if;
end process;
process(clk,rst_n)
begin
if clk'event and clk='1' then
cnt<=cnt+1;
if cnt>=0 and cnt<=127 then
pwm<='1';
else
pwm<='0';
end if;
end if;
end process;
回复
打赏帖 | |
---|---|
汽车+汽车地线之间连接处理被打赏20分 | |
【Zephyr】使用Zephyr外设初始化过程解析被打赏30分 | |
【S32K146】S32DS watchdog 配置使用被打赏20分 | |
【Zephyr】使用 IAR 调试 Zephyr 镜像被打赏20分 | |
赚取电动螺丝刀+电源电路理论知识分享1被打赏5分 | |
我想要一部加热台+分享常见运算放大器电路的应用被打赏5分 | |
【Zephyr】MCXN947 Zephyr 开发入门适配shell被打赏20分 | |
我想要一部加热台+常见的MOS管驱动电路被打赏5分 | |
【我要开发板】6.联合MATLAB记录数据被打赏50分 | |
【换取手持数字示波器】MicrochipMPLABHarmony框架下串口调试printf输出记录被打赏29分 |