S
spartan3wiz
Guest
All verilog-experts can you help me with the following example? I'm a
happy hobbyist trying to grasp the most elemental part of verilog.
help me out! Has the code below a clear sense of flow, thus, is it
possible to say exactly what is going to happen in simulation? Is it
safe for Synthesizing into any technology? Is it safe for FPGAs? What
is the value after the first clock cycle,second clock cycle? Please
help me out..
-snip-
reg a = 1'b0;
reg b;
reg c;
always@(posedge clk)
begin
a <= 1'b01;
end
always@(posedge clk)
begin
b = a;
end
always@(posedge clk)
begin
c <= a;
end
-snip-
happy hobbyist trying to grasp the most elemental part of verilog.
help me out! Has the code below a clear sense of flow, thus, is it
possible to say exactly what is going to happen in simulation? Is it
safe for Synthesizing into any technology? Is it safe for FPGAs? What
is the value after the first clock cycle,second clock cycle? Please
help me out..
-snip-
reg a = 1'b0;
reg b;
reg c;
always@(posedge clk)
begin
a <= 1'b01;
end
always@(posedge clk)
begin
b = a;
end
always@(posedge clk)
begin
c <= a;
end
-snip-