Apr 11, 2010 #1 S shivams Junior Member level 1 Joined Feb 13, 2010 Messages 15 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location pune Activity points 1,361 always@* begin if en y=a; else z=b; end
Apr 11, 2010 #2 N ninaleiqi Newbie level 2 Joined Apr 11, 2010 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,287 its a selector
Apr 11, 2010 #3 S shivams Junior Member level 1 Joined Feb 13, 2010 Messages 15 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location pune Activity points 1,361 by selector u mean mux? but code has 2 outputs
Apr 11, 2010 #4 N ninaleiqi Newbie level 2 Joined Apr 11, 2010 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,287 if en what's z's value. and if not ,what's y's value, it is not complete? Added after 8 minutes: u can try it through Quartus RTL viewer.
if en what's z's value. and if not ,what's y's value, it is not complete? Added after 8 minutes: u can try it through Quartus RTL viewer.
Apr 12, 2010 #5 shitansh Full Member level 5 Joined Jan 6, 2009 Messages 296 Helped 51 Reputation 100 Reaction score 29 Trophy points 1,308 Location India-Gujarat Activity points 3,017 shivams said: always@* begin if en y=a; else z=b; end Click to expand... This will infer a latch for y and z, e.g. always @* begin if (en) y = a; end always @* begin if (~en) z = b; end HTH
shivams said: always@* begin if en y=a; else z=b; end Click to expand... This will infer a latch for y and z, e.g. always @* begin if (en) y = a; end always @* begin if (~en) z = b; end HTH