fast_mem.sv 544 B

12345678910111213141516171819202122232425262728
  1. //
  2. // Fast local memory for the internal CPU.
  3. // This should be parameterized (again)...
  4. //
  5. module fast_mem
  6. (
  7. input rst_n,
  8. input clk,
  9. input write,
  10. input read,
  11. input [3:0] wstrb,
  12. input [12:0] addr,
  13. input [31:0] wdata,
  14. output [31:0] rdata
  15. );
  16. fastmem_ip ip (
  17. .aclr ( ~rst_n ),
  18. .address ( addr ),
  19. .byteena ( wstrb ),
  20. .clock ( clk ),
  21. .data ( wdata ),
  22. .rden ( 1'b1 ), // Slows down too much to modulate
  23. .wren ( write ),
  24. .q ( rdata )
  25. );
  26. endmodule // fast_mem