AXI-Verification architecture, functional coverage and assertions based coverage code
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

20 linhas
693 B

  1. package my_pkg;
  2. //axi_if vif();
  3. typedef enum bit [1:0] {awidle = 2'b00, awstart = 2'b01, awreadys = 2'b10} awstate_type;
  4. awstate_type awstate, awnext_state;
  5. typedef enum bit [2:0] {widle = 0, wstart = 1, wreadys = 2, wvalids = 3, waddr_dec = 4} wstate_type;
  6. wstate_type wstate, wnext_state;
  7. typedef enum bit [2:0] {ridle = 0, rstart = 1, rwait = 2, rvalids = 3, rerror = 4} rstate_type;
  8. rstate_type rstate, rnext_state;
  9. typedef enum bit [1:0] {aridle = 0, arstart = 1, arreadys = 2} arstate_type;
  10. arstate_type arstate, arnext_state;
  11. typedef enum bit [1:0] {bidle = 0, bdetect_last = 1, bstart = 2, bwait = 3} bstate_type;
  12. bstate_type bstate,bnext_state;
  13. endpackage