(1)fx2lp_slaveFIFO2b_streamIN_fpga_top.v
module fx2lp_slaveFIFO2b_streamIN_fpga_top(
// reset_n,
fdata,
faddr,
slrd,
slwr,
sloe,
flagd,
flaga,
clk,
clk_out,
pkt_end,
done,
sync,
dbug_sig
);
//input reset_n;
inout [15:0]fdata;
input flaga;
input flagd;
input clk;
output clk_out;
output [1:0]faddr;
output sloe;
output slwr;
output slrd;
output pkt_end;
output done;
input sync;
output dbug_sig;
reg slrd_n;
reg slwr_n;
reg sloe_n;
reg slrd_d_n;
reg [7:0] fifo_data_in;
reg [7:0] fifo_data_out;
reg [16:0] data_out1;
//reg [7:0] data_out2;
wire reset_n;
parameter stream_in_idle = 1'b0;
parameter stream_in_write = 1'b1;
reg cu