what will be the output of the following code

Status
Not open for further replies.

jesuraj

Newbie level 3
Joined
Jan 31, 2006
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
always @(clk)
begin
a = 0;
a <= 1;
$display(a);
end
 

Assuming that's Verilog, you'll just get error messages.
Missing module declaration. Undefined "clk". Undefined "a".
 

a=0
a=1
1 is more positive as compare to 0 and 0 is more negatie as compare to 1.
so when the 0 input output should be low when 1 out should be high.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…