data/full_repos/permissive/19591557/modules/hss_multiplexer/spio_hss_multiplexer_crc_gen.v
None: at end of input
1: b'%Error: data/full_repos/permissive/19591557/modules/hss_multiplexer/spio_hss_multiplexer_crc_gen.v:32: Cannot find include file: spio_hss_multiplexer_common.h\n`include "spio_hss_multiplexer_common.h" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/19591557/modules/hss_multiplexer,data/full_repos/permissive/19591557/spio_hss_multiplexer_common.h\n             data/full_repos/permissive/19591557/modules/hss_multiplexer,data/full_repos/permissive/19591557/spio_hss_multiplexer_common.h.v\n             data/full_repos/permissive/19591557/modules/hss_multiplexer,data/full_repos/permissive/19591557/spio_hss_multiplexer_common.h.sv\n             spio_hss_multiplexer_common.h\n             spio_hss_multiplexer_common.h.v\n             spio_hss_multiplexer_common.h.sv\n             obj_dir/spio_hss_multiplexer_common.h\n             obj_dir/spio_hss_multiplexer_common.h.v\n             obj_dir/spio_hss_multiplexer_common.h.sv\n%Error: data/full_repos/permissive/19591557/modules/hss_multiplexer/spio_hss_multiplexer_crc_gen.v:64: Cannot find include file: CRC16_D32.v\n`include "CRC16_D32.v"   // function nextCRC16_D32 (Data, crc) \n         ^~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n'
module spio_hss_multiplexer_crc_gen
(
  input wire 	    clk,
  input wire 	    rst,


  input wire 	    crc_go,
  input wire 	    crc_last,
  input wire [31:0] crc_in,
  output reg [31:0] crc_out
);





  localparam CHKSUM_RST = {16 {1'b1}};




  reg [15:0] new_chksum;
  reg [15:0] chksum;





`include "CRC16_D32.v"
   







  always @(*)

    new_chksum = nextCRC16_D32 (crc_in, chksum);





  always @(*)
     if (crc_last && crc_go)

       crc_out = {crc_in[31:16], new_chksum};
     else
       crc_out = crc_in;





  always @(posedge clk or posedge rst)
     if (rst)
       chksum <= CHKSUM_RST;
     else
       if (crc_go)
         if (crc_last)
           chksum <= CHKSUM_RST;
         else
           chksum <= new_chksum;


endmodule
module spio_hss_multiplexer_crc_gen
(
  input wire 	    clk,
  input wire 	    rst,


  input wire 	    crc_go,
  input wire 	    crc_last,
  input wire [31:0] crc_in,
  output reg [31:0] crc_out
);






  localparam CHKSUM_RST = {16 {1'b1}};




  reg [15:0] new_chksum;
  reg [15:0] chksum;





`include "CRC16_D32.v"
   







  always @(*)

    new_chksum = nextCRC16_D32 (crc_in, chksum);





  always @(*)
     if (crc_last && crc_go)

       crc_out = {crc_in[31:16], new_chksum};
     else
       crc_out = crc_in;





  always @(posedge clk or posedge rst)
     if (rst)
       chksum <= CHKSUM_RST;
     else
       if (crc_go)
         if (crc_last)
           chksum <= CHKSUM_RST;
         else
           chksum <= new_chksum;


endmodule