electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Can I use a pulse like following in VHDL?


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> Can I use a pulse like following in VHDL?
Author Message
EDA_hg81



Joined: 25 Nov 2005
Posts: 395


Post09 Oct 2008 2:21   

Can I use a pulse like following in VHDL?


Can I use a pulse like following:

CLK is the global Clock signal

Code:
Process (CLK)

A <= B and C;

End;

Process ( A )

If ( A’event and A= ‘1’)

More Code here

End ;

So many thanks for your suggestions.
Back to top
Google
AdSense
Google Adsense




Post09 Oct 2008 2:21   

Ads




Back to top
manish12



Joined: 21 Nov 2006
Posts: 1020
Helped: 31


Post09 Oct 2008 2:48   

Re: Can I use a pulse like following in VHDL?


Process (CLK)

A <= B and C;

End;

B and C also need in sensitivity list


Process ( A )

If ( A’event and A= ‘1’)

More Code here

End ;

it is ok no problem
Back to top
avimit



Joined: 16 Nov 2005
Posts: 417
Helped: 69
Location: Fleet, UK


Post09 Oct 2008 14:15   

Re: Can I use a pulse like following in VHDL?


Quote:

Process (CLK)

A <= B and C;

End;


CLK will have no effect on A. B and C will may not have any effect on A in simulation as they are absent form senstivity list.

Quote:

Process ( A )

If ( A’event and A= ‘1’)

More Code here

End ;


There isn't any problem in the above code, the only thing is 'A' becomes a clock? do you really intend to make 'A' a clock?
kr,
Avi
Back to top
EDA_hg81



Joined: 25 Nov 2005
Posts: 395


Post09 Oct 2008 14:20   

Re: Can I use a pulse like following in VHDL?


Should I connect A with a buffer inside XilinX FPGA?

Thanks.

Added after 4 minutes:

In my mind, I want to use Pulse A to trigger a part of code.

Pulse A is not a free run clock.

What I am worry about is the fan-out ability of pulse A inside Xilinx FPGA.

Thanks.
Back to top
mmarco76



Joined: 04 Jan 2008
Posts: 85
Helped: 6


Post09 Oct 2008 14:42   

Can I use a pulse like following in VHDL?


If your A signal is bigger than a clock cycle, it's really better that you reveal it's rising edge synchronously (yes you'll have 2 clk of delay, but usually it's not a problem) and use this generated sygnal as an enable in your synchronous design.

Done that, you'll have that your code will be fully synchronous and that's a lot better solution.
You'll have also no fan out problem.
Back to top
EDA_hg81



Joined: 25 Nov 2005
Posts: 395


Post09 Oct 2008 16:28   

Re: Can I use a pulse like following in VHDL?


My idea is want to capture the transient time of Pulse A.

and Pulse A may be only one clock width.

How about the codes as following:

Code:
A <= B and C;

Process ( risingedge (A) )

More code here

End process.


Thanks.
Back to top
FvM



Joined: 22 Jan 2008
Posts: 5154
Helped: 766
Location: Bochum, Germany


Post09 Oct 2008 23:45   

Re: Can I use a pulse like following in VHDL?


A’event and A= ‘1’ and rising_edge(A)are exact synonyms, anything said regarding the first also appies to the latter.

It's not generally prohibited, to use any signal, also from prior logical pcrocessing, as an edge sensitive clock. And it's particularly not a problem of fan-out. But the asynchronous nature of the design may imply some problems, depending onf the character of the more code here. A usual way to avoid them from the start is to use a synchronous edge detection instead of clocking a process with an unrelated clock. For a short signal, direct clocking may be the only option. But then, all input and output signals to the process have to be treated with caution, cause violation of setup and hold timing may result in unexpected logical behaviour.
Back to top
EDA_hg81



Joined: 25 Nov 2005
Posts: 395


Post10 Oct 2008 1:09   

Re: Can I use a pulse like following in VHDL?


thank you all for your suggestions
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> Can I use a pulse like following in VHDL?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Can I use a 1N4148 diode like a 0.5V reference??? (8)
on vhdl :if(DATA=10) generate - can i do like this ? (1)
can I use LPM library in SPARTAN2 ? VHDL!!!?? (2)
Can I use this Verilog style inside VHDL ? (5)
how can i use vhdl(-ams) results in MATLAB??? (2)
how to plot smith cart like following graph ? (1)
Capturing pulse - generated pulse can’t be received (9)
wave form Ic like sin wave pulse triangle (2)
Any one use Philips DSP, like Trimedia? (4)
VHDL code of following structures? (4)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS