RAL

,

I am using 2 register models. Both register model have been driven through same agent. And also both predictors bus_in in connected with monitor of the agent with two different analysis ports.
Now, I am driving 2 sequences like in order of reg_model_1 and then reg_model_2. After completing of second sequence (at the end of bus2reg of adapter_2) the data values of second sequence is going to first model`s adapter adapter_1(of bus2reg) also . So I am getting conflicts over there as upcoming transaction is not required transaction item.

My question is Can we use 2 different register model in a single environment ?? and if yes, How can we achieve above scenario .

Thanks .

In reply to Sivasankaran M:

You can have multiple register blocks in a env, in this case you’ll need different predictor/adapter to convert sequences to bus2reg transactions.

Here, the problem might be in monitor logic, where you are sampling transactions and sending to the analysis port. E.g. for second sequence, monitor samples the transaction and sends it to both the analysis ports, which will update both register blocks.

Update monitor logic for, sampling and sending transactions to a single analysis port for particular type of transaction.

Edit1: Another way to update only the required registers is to add a field to sequence_item to indicate valid register type/s, and check this field in both adapter’s bus2reg sequence to update the register sequence for only valid register type.

In reply to mayurkubavat:

Thanks for your Solution. It worked.