转网友bigoal 问题如下,哪位高手回答下吧!
我编写如下程序:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity dds is
port(frec:in std_logic_vector(23 downto 0);
clk:in std_logic;
wr:in std_logic;
sin_out:out std_logic_vector(7 downto 0)
);
end dds;
architecture beh of dds is
signal phase_adder,frq_reg:std_logic_vector(23 downto 0);
signal rom_address,address:std_logic_vector(7 downto 0);
signal rom_out:std_logic_vector(7 downto 0);
signal s1,s2,a1,a2:std_logic;
component dds_rom
port(add:in std_logic_vector(7 downto 0);
inclock:in std_logic;
q:out std_logic_vector(7 downto 0)
);
end component;
begin
data:dds_rom port map(address,clk,rom_out);
datain:process(clk)
begin
if(clk'event and clk='1') then
if(wr='0') then
frq_reg
我要赚赏金打赏帖 |
|
|---|---|
| 【FreeRtos】FreeRtos + MPU模块的配置使用被打赏¥32元 | |
| 【分享开发笔记,赚取电动螺丝刀】墨水屏文本显示器被打赏¥25元 | |
| 【STEVAL-STWINKT1B】:结合STMcubeMX读取磁力计iis2mdc被打赏¥19元 | |
| 【STEVAL-STWINKT1B】:结合STMcubeMX读取LPS22HH气压、温度被打赏¥19元 | |
| 【STEVAL-STWINKT1B】:结合STMcubeMX读取STTS751温度被打赏¥17元 | |
| 【STEVAL-STWINKT1B】:结合STMcubeMX软件读取HTS221温湿度被打赏¥22元 | |
| M5PAPERESP32EINKDEVKIT评测|使用MicroPython开发M5Paper被打赏¥15元 | |
| OK1126B-S开发板下以导航按键控制云台/机械臂姿态调整被打赏¥29元 | |
| 【树莓派5】便携热成像仪被打赏¥36元 | |
| 【树莓派5】环境监测仪被打赏¥35元 | |
我要赚赏金
