Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


xiaodong.zhuang last won the day on January 26 2014

xiaodong.zhuang had the most liked content!

About xiaodong.zhuang

  • Rank
  1. Hi, Does anyone know where is UVM1.2 user's guide? Has accellera released it? Thanks. Zhuang, Xiaodong
  2. Per my understanding, UVC can be two types, module UVC and interface UVC, module UVC is usually passive for checkers/monitors/scoreboards of a DUT, and interface UVC is usually active for stimulus driving. And for agent, usually a UVC can have several agents inside, for example, a AHB UVC can have master agent and slave agent both inside. Hope that be helpful.
  3. Hi, Qin Sorry misleading you, I check the sv spec, I think the meaning of a successfuly casting from super class to sub class is that the super class is actuall a subclass. So if the super class in your example P1 is actually not the subclass, the $cast will fail. One usual scenario to use the $cast is to pass some subclass data into other class, and the developer of the acceptor class even don't know if the incoming class is what kind of subclass, so usually he will in the acceptor class use a super(parent) class to get the incoming data and then use $cast to check/transfer the data into certain subclass. Hope that will be helpful.
  4. Hi, QIN The reason why case 1 fail is that you "new" P2, which means the P2 is instantiated, so it is not only a handle. if you just declare the P2 as"My_Packet P2;" , the cast will work. The reason when case2 work is that P1 is assigned to P2 as P2 handle, so a cast from P2 to P2 itself is always ok.
  • Create New...