data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/io_port2/pcie_lossy_samp_gate.v
data/verilator_xmls/f0656abe-644e-4cba-94b2-04fbd4da0ec1.xml
module pcie_lossy_samp_gate
(
   input [63:0]   i_tdata,
   input          i_tvalid,
   output         i_tready,
   
   output [63:0]  o_tdata,
   output         o_tvalid,
   input          o_tready,
   
   input          drop,
   output         dropping
);

   assign o_tdata    = i_tdata;
   assign o_tvalid   = i_tvalid & ~drop;
   assign i_tready   = o_tready | drop;
   
   assign dropping   = drop & i_tvalid;
   
endmodule
module pcie_lossy_samp_gate
(
   input [63:0]   i_tdata,
   input          i_tvalid,
   output         i_tready,
   
   output [63:0]  o_tdata,
   output         o_tvalid,
   input          o_tready,
   
   input          drop,
   output         dropping
);


   assign o_tdata    = i_tdata;
   assign o_tvalid   = i_tvalid & ~drop;
   assign i_tready   = o_tready | drop;
   
   assign dropping   = drop & i_tvalid;
   
endmodule