The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> Question Listing 19 Chapter 4 Bidirectional Connect Module
https://designers-guide.org/forum/YaBB.pl?num=1319760101

Message started by Marcelo Baru on Oct 27th, 2011, 5:01pm

Title: Question Listing 19 Chapter 4 Bidirectional Connect Module
Post by Marcelo Baru on Oct 27th, 2011, 5:01pm

Hello,

Can someone explain me the line:

always @ (vstate or istate or d) begin
   case (vstate)
....

I am not sure I fully understand vstate or istate or d. vstate is an integer.

I hope to have more luck than with me skin effect question.

Thanks,
Marcelo

Title: Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Post by Ken Kundert on Oct 27th, 2011, 5:11pm

You are in luck. The '@(vstate or istate or d)" triggers if there are any events (i.e. changes in) vstate, istate, or d. Thus, whenever one of those variables changes, the case statement is re-evaluated.

-Ken

Title: Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Post by Marcelo Baru on Oct 28th, 2011, 1:24pm

Many thanks Ken. You confirmed my thought. I wish there was a better explanation of the OR operation.

Cheers,
Marcelo

Title: Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Post by Marcelo Baru on Oct 28th, 2011, 1:34pm

Ken,

In the same listing, shouldn't always @(above(V(a)-vl, 1)) inXrange =1; be a cross function? Or the 1 removed? The posedge condition is checked below.

BTW is there a link to submit errata info for the book?.

Thanks,
Marcelo

Title: Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Post by Ken Kundert on Oct 28th, 2011, 6:58pm

Marcelo,
   Yes, you should delete the 1 in @(above(V(a)-vl, 1)). Thanks for the comments on the book, I have recorded them so when I do the second edition I will resolve them. If you have any further comments or want to point out errors, just send them to me.

-Ken

Title: Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Post by Marcelo Baru on Oct 28th, 2011, 10:07pm

Great Ken. I will collect them once I finish reading the book and I will let you know.

Best,
Marcelo

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.