As far as I know, Wire and logic are no difference between two. but
I found a something difference between two in behavior. I', already read https://verificationacademy.com/forums/systemverilog/usage-var#reply-42240.
To pass the clock signal from clock_gen's output aclk to control's input clk I made a simple code as the below,
logic clk = aclk;
modport clock_gen (output aclk, bclk, areset_n);
modport control (input clk, reset_n);
and Test looks like
CLKGEN u_CLKGEN (
When I declare logic clk = aclk; then logic clk didn't get signal from aclk.
But when I declare wire clk = aclk; instead, I can get the clock signal from aclk to clk.
Would you help me to understand what is the difference between wire and logic?