J
James Harris
Guest
To carry out an operation such as addition and then raise a flag I was
thinking to write
always @(a1, a2) begin
y = a1 + a2;
flag = 1;
end
but HDL Programming Fundamentals (Nazeih M Botros) says of behavioural
descriptions: "For VHDL, the statements inside the process are
sequential. In Verilog, all statements are concurrent."
I thought that '=' was sequential and '<=' was a concurrent
assignment. So I am puzzled. I don't want to build in delays with
#<delay> as I don't quite see how they synthesize.
Is there a way (or a best way) to get the flag to raise as soon as the
addition is complete?
--
TIA,
James
thinking to write
always @(a1, a2) begin
y = a1 + a2;
flag = 1;
end
but HDL Programming Fundamentals (Nazeih M Botros) says of behavioural
descriptions: "For VHDL, the statements inside the process are
sequential. In Verilog, all statements are concurrent."
I thought that '=' was sequential and '<=' was a concurrent
assignment. So I am puzzled. I don't want to build in delays with
#<delay> as I don't quite see how they synthesize.
Is there a way (or a best way) to get the flag to raise as soon as the
addition is complete?
--
TIA,
James