data/full_repos/permissive/428611613/cores/axis_negator_v1_0/axis_negator.v
data/verilator_xmls/4434089c-94ca-4864-856d-bade20aaf4a6.xml
module axis_negator #
(
  parameter integer AXIS_TDATA_WIDTH = 32
)
(

  input  wire                        aclk,

  input  wire                        cfg_flag,


  output wire                        s_axis_tready,
  input  wire [AXIS_TDATA_WIDTH-1:0] s_axis_tdata,
  input  wire                        s_axis_tvalid,


  input  wire                        m_axis_tready,
  output wire [AXIS_TDATA_WIDTH-1:0] m_axis_tdata,
  output wire                        m_axis_tvalid
);

  assign s_axis_tready = m_axis_tready;
  assign m_axis_tdata = cfg_flag ? -$signed(s_axis_tdata) : s_axis_tdata;
  assign m_axis_tvalid = s_axis_tvalid;

endmodule
module axis_negator #
(
  parameter integer AXIS_TDATA_WIDTH = 32
)
(

  input  wire                        aclk,

  input  wire                        cfg_flag,


  output wire                        s_axis_tready,
  input  wire [AXIS_TDATA_WIDTH-1:0] s_axis_tdata,
  input  wire                        s_axis_tvalid,


  input  wire                        m_axis_tready,
  output wire [AXIS_TDATA_WIDTH-1:0] m_axis_tdata,
  output wire                        m_axis_tvalid
);


  assign s_axis_tready = m_axis_tready;
  assign m_axis_tdata = cfg_flag ? -$signed(s_axis_tdata) : s_axis_tdata;
  assign m_axis_tvalid = s_axis_tvalid;

endmodule