求助:用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;
回复
| 有奖活动 | |
|---|---|
| 硬核工程师专属补给计划——填盲盒 | |
| “我踩过的那些坑”主题活动——第002期 | |
| 【EEPW电子工程师创研计划】技术变现通道已开启~ | |
| 发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
| 【EEPW在线】E起听工程师的声音! | |
| 高校联络员开始招募啦!有惊喜!! | |
| 【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
| 送您一块开发板,2025年“我要开发板活动”又开始了! | |
还有我在用MAX+PLUS 2进行程序仿真的时候怎么老是出现下面提示,我简直没办法 。
我要赚赏金
