kumar2005 Posted November 17, 2012 Report Share Posted November 17, 2012 Hi, I would like to write a register with a random value and read back and again I want to write back the same register with '0'. the problem I'm facing is - I could not able to write '0' . AXI Slave write transaction is not all happening for write '0' while reg model is getting updated with '0' . So seeing register mismatch errors. Could you please tell me why write transaction is not happening if I write '0' . Write back is happening if I write other values other than '0'. Snippet of the code: data[31:0] = 32'hFFFF_FFFF; model1.REG_A.set(data0); update_reg(model1.REG_A,status); compare_model_dut_reg(model1.REG_A); //task to compare dut with reg model ( read_reg) data[31:0] = 32'h0000_0000;// WRITE '0' is not happening . model1.REG_A.set(data0); update_reg(model1.REG_A,status); Model is getting updated with value'0' but It is not happening at DUT side. Item is not getting generated for write '0' itself. Please throw some light on this. Thanks Quote Link to comment Share on other sites More sharing options...
MehulKumar Posted November 21, 2012 Report Share Posted November 21, 2012 Hi Kumar, It would be great if you could share your reg2bus adaptor code. The issue seems to be while converting the reg item to AXI item for the transaction. Thanks, Mehul Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.