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.

Working on one signal, but reading input on another

Status
Not open for further replies.

timsanr

Member level 1
Joined
Apr 13, 2012
Messages
41
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,596
Hi,

what to do in situation when I have FSM, which works on rising edge of clock, and I need to read incoming signal on some port on rising edge of another signal (I generate it inside)? I can't do it in that FSM with rising_edge() on that another signal because of 'bad synchronous description...'.
Could yo help, give some tip how to do it? Second process is good solution?
 

You dont. You have everything using the rising edge of one single clock.
If you are generating lots of clock (ie using rising_edges) you are doing it wrong. You should generate clock enables instead. You should not use any old signal's rising edge.
 
A signal originated from an unrelated clock domain should be double registered to the FSM clock before used as an input. Additional precautions must be taken to achieve consistent domain transfer of multibit signals.
 

1. After reading about that clock enable, is it one clock width impulse? And I should generate it in appropriate moments and as often as I need to read that external signal? And then I should check level of that CE signal (CE = '1') not the rising edge?

2. If I know exactly the moment of transition from 0 to 1 of my internal signal. And that signal rising edge causes that data appears on input pin, shoudn't be enough that I will read data there where I set 1 to that signal?
e.g.
Code:
strobe_data <= '1'; -- previous value = 0
data_loc <= data_input;
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top