English subtitles

← Receiver Signal Map cs348 unit4

Get Embed Code
1 Language

Showing Revision 1 created 03/06/2013 by Cogi-Admin.

  1. We are not finished with our signal map, we also need to develop the pieces for
  2. the Packet Receiver side, so the output ports, right. And there are the
  3. equivalent data, valid, and suspend signals, and we need to have access to those
  4. signals. Therefore we add the character of type inout, so we can drive and we
  5. can monitor those signals. So declare a list, for each of these port, that, that
  6. is of type simple port. Then we add in a constraint on that list to size it
  7. accordingly, in our case there will be three ports. So we will set a constraint
  8. on the list to have three members only respectively. Finally we're hooking up
  9. the members of the list to their DUT signal names. And we can leverage the
  10. index, implicit index variable to, enumerate through the number of ports. Great.
  11. So here is some syntax guidance. Again, you can, use this for your constraint on
  12. sizing the list. Then you can, iterate, this is the syntax again for the for
  13. each loop, so you will utilize this within a constraint. And then you can
  14. leverage the index, it's just called index. Right? So the funny thing is, you
  15. can use this directly. So if you do an append function to formulate your signal
  16. name, you can use index, you don't even have to do any type conversion. So go
  17. ahead and try that out.