very simple verliog question

Discussion in 'Programmer's Corner' started by facetten, Nov 26, 2008.

  1. facetten

    Thread Starter Member

    Nov 1, 2007
    11
    0
    so i wonder what the following codes mean


    always @ (posedge clk or negedge reset)
    begin
    if(reset == 0)
    present <= A;
    else
    present <= next;
    end
     
    Last edited: Nov 26, 2008
  2. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    If the reset input equals 0 (low logic) present will be equaled to A or
    if the reset input equals 1 (high logic) present will be equaled to next.
     
Loading...