EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

only @ with always

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Verilog Language - only @ with always

RyanS
Guest

Fri Dec 09, 2011 8:42 am   



What is the difference bewteen two commands,
always @(sigs)
and
@(sigs)?

RolfK
Guest

Mon Dec 12, 2011 9:11 am   



On Dec 9, 7:42 am, RyanS <yann....@gmail.com> wrote:
Quote:
What is the difference bewteen two commands,
always @(sigs)
and
@(sigs)?

Ryan,

I'm not 100% sure of your context.

Howver, as the statement says: always
Statements inside the block are executed if sigs are changed.
Statements in parallel to the always block will be executed in
parrallel.

@(sigs) only will let the execution wait up to sigs is changed.
Hence the executing the code after the @(sigs) statement ic blocked.

Hope that helped

RolfK

Jim Wu
Guest

Tue Dec 13, 2011 6:45 am   



On Dec 9, 1:42 am, RyanS <yann....@gmail.com> wrote:
Quote:
What is the difference bewteen two commands,
always @(sigs)
and
@(sigs)?

always @(sigs) executes every time sigs changes value.

@(sigs) executes once when sigs changes value.


Cheers,
Jim
http://myfpgablog.blogspot.com/

Gabor
Guest

Tue Dec 13, 2011 3:04 pm   



RyanS wrote:
Quote:
What is the difference bewteen two commands,
always @(sigs)
and
@(sigs)?

@ (sigs) needs to be inside some kind of procedural block. It
can be in an always block or an initial block. In either case
it does the same thing.

always says to continuously loop on the code in the statement
that follows. That statement can be either a single statement
like:

always
#7 foo = bar;

or a group of statements like

always
begin
#7 foo = bar;
@ (posedge clk) baz = #1 splat;
end

or:

always
@ (sigs) begin
foo = some_sig;
bar = some_other_sig;
end

I placed the @ (sigs) on a separate line to underline the point
that it is really independent of the "always" and not a special
case.

HTH,
Gabor

elektroda.net NewsGroups Forum Index - Verilog Language - only @ with always

Ask a question - edaboard.com

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
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony