Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

To shift half clock data

Status
Not open for further replies.

beginner_EDA

Full Member level 4
Joined
Aug 14, 2013
Messages
191
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
3,854
To shift data half clock cycle before

Hi,
Is there any way to shift the data coming on rising edge clock, half cycle before in VHDL? I tried with falling edge instead of rising edge but unfortunately it didn't produce the result.

Code:
shift_halfclk:process(clk) 

begin
 if falling_edge(clk) then
          data_half_shifted <= data;
  end if;     
end process;
 

Shift before? The statement is of course delaying the input data by a half clock cycle, related to a sampling clock working on rising_edge.
 

Hi,

first you need a timing diagram.
* input: data and clock
* output: data (and clock if modified)

Klaus
 

Is this for a testbench, or an FPGA?
if a testbench, then the answer is yes.

If on the FPGA, then this kind of thing would be done in the IO delay in the timing specifications, not RTL.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top