求助:用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;
回复
打赏帖 | |
---|---|
嵌入式LinuxC语言程序调试和宏使用技巧被打赏50分 | |
让代码中包含最新的编译时间信息被打赏50分 | |
rtthread硬件加密--2crc加密分析被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】mcxa156使用低功耗定时器适配硬件RTC框架被打赏26分 | |
【STM32F769】AI之与本地deepseek对接被打赏50分 | |
Buck电路工作在CCM模式下电感电流的计算公式是什么?被打赏5分 | |
buck电路工作原理被打赏5分 | |
基于MSPM0L1306的MODBUS-RTU协议通讯实验被打赏100分 | |
我想要一部加热台+多合一调试工具被打赏18分 | |
每周了解几个硬件知识+485硬件知识分享被打赏10分 |