{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture10 - ECE 4514 Digital Design II Spring 2008...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 4514 Digital Design II Spring 2008 Behavioral Modeling: Patrick Schaumont Spring 2008 ECE 4514 Digital Design II Lecture 10: Behavioral Modeling: Non-blocking Assignments Non-blocking assignments A Language Lecture Patrick Schaumont
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Today boxshadowdwn First part on writing behavioral models - models which make use of more advanced constructs to design always and initial blocks boxshadowdwn Today: Introduce non-blocking procedural assignments boxshadowdwn The first 20 minutes of this lecture are really important Patrick Schaumont Spring 2008 ECE 4514 Digital Design II Lecture 10: Behavioral Modeling: Non-blocking Assignments Pay Attention Now .. it will earn itself back later
Image of page 2
The assignment statements so far Continuous Assignment Procedural Assignment using stand-alone assign statement inside of always and initial = = Operation Where Example wire q; wire q; Patrick Schaumont Spring 2008 ECE 4514 Digital Design II Lecture 10: Behavioral Modeling: Non-blocking Assignments Valid LHS Valid RHS reg a, b; assign q = a & b; Evaluated reg a, b; always @(b) a = b + 5; net (wire) reg expression of net or reg expression of net or reg when any part of RHS changes procedural execution
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
What is 'procedural execution' ? boxshadowdwn An always block is either executing, or it is waiting for an event from its sensitivity list boxshadowdwn When it is executing, it proceeds in a sequential fashion through the statements of the code, until it runs into an event control statement (@, wait, #) Patrick Schaumont Spring 2008 ECE 4514 Digital Design II Lecture 10: Behavioral Modeling: Non-blocking Assignments always begin @(upedge a); b = a + 1; wait (c == 3); #20 b = a + 1; end wait for a execute wait for c execute wait 20 time units execute
Image of page 4
What is 'procedural execution' ? boxshadowdwn An always is either executing, or it is waiting for an event from its sensitivity list boxshadowdwn When it is executing, it proceeds in a sequential fashion through the statements of the code, until it runs into an event control statement (@, wait, #) Patrick Schaumont Spring 2008 ECE 4514 Digital Design II Lecture 10: Behavioral Modeling: Non-blocking Assignments wait for a execute wait for c execute wait 20 time units execute Procedural assignments execute in sequence within a block ('Sequential Block') Simulation time only advances through events. Thus, all execute blocks take 0 simulation time
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
The assignment statements so far Continuous Assignment Procedural Assignment using stand-alone assign statement inside of always and initial = = Operation Where Example wire q; wire q; The full name of this assignment is: Patrick Schaumont Spring 2008 ECE 4514 Digital Design II Lecture 10: Behavioral Modeling: Non-blocking Assignments Valid LHS Valid RHS reg a, b; assign q = a & b; Evaluated reg a, b; always @(b) a = b + 5; net (wire) reg expression of net or reg expression of net or reg when any part of RHS changes procedural execution Procedural Blocking Assignment
Image of page 6
Procedural Blocking Assignment boxshadowdwn Execution in a sequential block cannot complete without the assignment being complete reg [7:0] a, b; always @( posedge clk) begin a = b + 2; Patrick Schaumont Spring 2008
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern