Interface and driver component of Dual Port RAM is not working properly

In reply to ASHISH PATEL:

I would use the following for the data outputs:


assign data_0 = (we_0) ? data0 : `bz;
assign data_1 = (we_1) ? data1 : `bz;