vhdl,抽样判决如何实现?如果有代码就更好了

2025-03-22 12:39:22
推荐回答(2个)
回答1:

抽样判决??多数判决么?不太懂,如果多数判决可以,
simple :std_logic_vector(3 downto 0);
din :std_logic;
dout :std_logic;

process(CLK) --时钟高电平采样,连续三个
begin
if rising_edge(CLK) then
simple(3 downto 1) <= simple(2 downto 0);
simple(0) <= din;
end if;
end process;

dout <= (simple(0) and simple(1)) or (simple(0) and simple(2)) or (simple(1) and simple(2));

回答2:

你也用FPGA实现同步的功能啊,那个同步你怎么理解的