Convert DIC code to Pure RTL by introducing a program counter per thread.
RTL: unordered list of commands to be executed on a clock edge.
Two coding styles (it does not matter whether these transfers are each in their own always statement or share over whole clock domain):
always @(posedge clk) a <= b ? c + d;
always @(posedge clk) b <= c - d;
always @(posedge clk) c <= 22-c;
|
always @(posedge clk) begin
a <= b ? c + d;
b <= c - d;
c <= 22-c;
end
|