`timescale 1ns/1ps

 `include "my_struct_s.sv"
 module core
   (  input [$bits(my_struct_s)-1:0] my_struct_flat_i     // flattened struct params of synth module
      ,output [$bits(my_struct_s)-1:0] my_struct_flat_o   // flattened struct params of synth module
   );

   my_struct_s my_struct_i, my_struct_o;                  // the actual structs

	assign my_struct_o.addr = 5;                      // example body code
	assign my_struct_o.data = 7;                      // example body code
	
   assign my_struct_i = my_struct_flat_i;                 // unflattened in param
   assign my_struct_flat_o = my_struct_o;                 // unflattened out param

   endmodule
