Advertisement
Guest User

Untitled

a guest
Oct 4th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. reg [31:0] ilas_mem[0:3];
  2.  
  3. initial begin
  4. ilas_mem[0][15:0] = 8'h00;
  5. ilas_mem[0][23:16] = 8'h00; // DID
  6. ilas_mem[0][27:24] = 4'h0; // BID
  7. ilas_mem[0][31:28] = 4'h0; // ADJCNT
  8. ilas_mem[1][4:0] = 5'h00; // LID
  9. ilas_mem[1][5] = 1'b0; // PHADJ
  10. ilas_mem[1][6] = 1'b0; // ADJDIR
  11. ilas_mem[1][7] = 1'b0; // X
  12. ilas_mem[1][12:8] = 5'h3; // L
  13. ilas_mem[1][14:13] = 2'b00; // X
  14. ilas_mem[1][15] = 1'b1; // SCR
  15. ilas_mem[1][23:16] = 8'h00; // F
  16. ilas_mem[1][28:24] = 5'h1f; // K
  17. ilas_mem[1][31:29] = 3'b000; // X
  18. ilas_mem[2][7:0] = 8'h01; // M
  19. ilas_mem[2][12:8] = 5'h0f; // N
  20. ilas_mem[2][13] = 1'b0; // X
  21. ilas_mem[2][15:14] = 2'h0; // CS
  22. ilas_mem[2][20:16] = 5'h0f; // N'
  23. ilas_mem[2][23:21] = 3'h1; // SUBCLASSV
  24. ilas_mem[2][28:24] = 5'h00; // S
  25. ilas_mem[2][31:29] = 3'h1; // JESDV
  26. ilas_mem[3][4:0] = 5'h00; // CF
  27. ilas_mem[3][6:5] = 2'b00; // X
  28. ilas_mem[3][7] = 1'b1; // HD
  29. ilas_mem[3][23:8] = 16'h00; // X
  30. ilas_mem[3][31:24] = 8'h00; // FCHK
  31. ilas_mem[3][31:24] = ilas_mem[0][23:16] + ilas_mem[0][31:24] +
  32. ilas_mem[1][7:0] + ilas_mem[1][15:8] + ilas_mem[1][23:16] + ilas_mem[1][31:24] +
  33. ilas_mem[2][7:0] + ilas_mem[2][15:8] + ilas_mem[2][23:16] + ilas_mem[2][31:24] +
  34. ilas_mem[3][7:0] + ilas_mem[3][15:8] + ilas_mem[3][23:16];
  35.  
  36. end
  37.  
  38. always @(posedge clk) begin
  39. if (ilas_config_rd == 1'b1) begin
  40. ilas_config_data <= ilas_mem[ilas_config_addr];
  41. end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement