I've encountered in an example for a system verilog code decleration of inputs and outputs for a module
without stating their type, e.g logic
, wire
...
module mat_to_stream (
input [2:0] [2:0] [2:0] a,b,
input newdata,
input rst, clk,
output [2:0] [7:0] A_out, B_out);
...rest of code...
What is the diffrence between stating logic
and not stating any type?
input newdata,
is equivalent toinput wire logic newdata,
.logic
is a data type, andwire
is a signal kind with a default data type oflogic
. – Seena