The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 3:25pm
Pages: 1
Send Topic Print
Question Listing 19 Chapter 4 Bidirectional Connect Module (Read 3878 times)
Marcelo Baru
New Member
*
Offline



Posts: 7

Question Listing 19 Chapter 4 Bidirectional Connect Module
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
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2386
Silicon Valley
Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Reply #1 - 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
Back to top
 
 
View Profile WWW   IP Logged
Marcelo Baru
New Member
*
Offline



Posts: 7

Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Reply #2 - 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
Back to top
 
 
View Profile   IP Logged
Marcelo Baru
New Member
*
Offline



Posts: 7

Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Reply #3 - 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
Back to top
 
« Last Edit: Oct 28th, 2011, 2:52pm by Marcelo Baru »  
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2386
Silicon Valley
Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Reply #4 - 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
Back to top
 
 
View Profile WWW   IP Logged
Marcelo Baru
New Member
*
Offline



Posts: 7

Re: Question Listing 19 Chapter 4 Bidirectional Connect Module
Reply #5 - 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
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.