English 中文(简体)
• 如何推迟对蒸汽中几个周期发出信号
原标题:how to delay a signal for several cycles in vhdl
  • 时间:2011-10-27 15:14:41
  •  标签:
  • delay
  • vhdl

How to delay signal for a given number of cycles in VHDL? Number of cycles is given as a generic.

任何其他备选办法

process(CLK) is
begin
  if rising_edge(CLK) then
    a_q <= a;
    a_q_q <= a_q;
    a_q_q_q <= a_q_q;
    -- etc
  end if;
end process;

?

最佳回答

创建1-d阵列(简称a_store<>/code>),以适当类型的信号,其阵列的长度与周期数有关。 这可能意味着,除非已经存在一种病媒:例如<代码>std_logic_vectorinteger_vector (后者只在VHDL-2008年才成为标准)。

接着,每一行各样阵列:

if rising_edge(clk) then
  a_store <= a_store(store high-1 downto 0) & a;
  a_out <= a_store(a_store high);
end if;
问题回答

暂无回答




相关问题
Starting work on a Pre-existing Project

So this is more of a generic question. I seem to keep finding myself being put on larger and larger projects. Recently I have been assigned to a very large project written in C and VHDL. The goal ...

Load half word and load byte in a single cycle datapath

There was this problem that has been asked about implementing a load byte into a single cycle datapath without having to change the data memory, and the solution was something below. alt text http://...

Why IEEE vhdl standard library is not STL?

IEEE vhdl language reference manual only defined a limited set of standard packages.And it do not defined the functionalities on the standard types,such as STD_LOGIC.So there are no standard AND2, INV ...

VHDL - When does a process() run for the first time?

Consider : process(a) According to the text i have : A process is first entered at the time of simulation, at which time it is executed until it suspends itself due to a wait statement or a ...

How to generate serial signal from string?

How do I send data represented by a binary string (e.g. "01011101000100111", length is variable) to an std_logic signal given either fixed delay or clock signal? I want this for a testbench so I d ...

Overflow bit 32Bit ALU VHDL

I m currently writing a 32Bit ALU (Add/Sub) in VHDL. I ve got a problem with the overflow bit. I can t see when to set the overflow depending on the operation (addition, subtraction) and the input ...