receiving data

B

blackpadme

Hi,

I'm coding a data receiver which manage bits sent with period Tb. I
need to do some operations with the actual input and the previous, and
then, output the result.

When i get the data from the channel, doing:

get_data : process(clk, en)
variable ...
begin
if en = '1' and rising_edge(clk) then
temp_input := input;
do things with input and the last value..

output <= result;
end process;

I get a lag of Tb in the output. Is normal have this lag connecting
sequential devices to other sequential devices receiving the data with
a clock ?

Thanks.
 
M

Mike Treseler

blackpadme said:
...
output <= result;
end process;

I get a lag of Tb in the output. Is normal have this lag connecting
sequential devices to other sequential devices receiving the data with
a clock ?

Yes. In your example,
"result" is on the D side of the register, and
"output" is on the Q side.

-- Mike Treseler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top