very simple verliog question

Thread Starter

facetten

Joined Nov 1, 2007
11
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:

mik3

Joined Feb 4, 2008
4,843
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.
 
Top