2021-09-25 20:00:36 +02:00
|
|
|
package sc64;
|
|
|
|
|
|
|
|
typedef enum bit [2:0] {
|
|
|
|
ID_N64_SDRAM,
|
|
|
|
ID_N64_BOOTLOADER,
|
|
|
|
ID_N64_FLASHRAM,
|
|
|
|
ID_N64_DD,
|
|
|
|
ID_N64_CFG,
|
|
|
|
__ID_N64_END
|
|
|
|
} e_n64_id;
|
|
|
|
|
|
|
|
typedef enum bit [3:0] {
|
|
|
|
ID_CPU_RAM,
|
2021-11-16 22:37:48 +01:00
|
|
|
ID_CPU_FLASH,
|
2021-09-25 20:00:36 +02:00
|
|
|
ID_CPU_GPIO,
|
|
|
|
ID_CPU_I2C,
|
|
|
|
ID_CPU_USB,
|
|
|
|
ID_CPU_UART,
|
|
|
|
ID_CPU_DMA,
|
|
|
|
ID_CPU_CFG,
|
|
|
|
ID_CPU_SDRAM,
|
|
|
|
ID_CPU_FLASHRAM,
|
|
|
|
ID_CPU_SI,
|
2021-12-24 23:51:30 +01:00
|
|
|
ID_CPU_DD,
|
2021-09-25 20:00:36 +02:00
|
|
|
__ID_CPU_END
|
|
|
|
} e_cpu_id;
|
|
|
|
|
|
|
|
typedef enum bit [1:0] {
|
|
|
|
ID_DMA_USB,
|
|
|
|
ID_DMA_SD,
|
|
|
|
__ID_DMA_END
|
|
|
|
} e_dma_id;
|
|
|
|
|
2021-11-16 22:37:48 +01:00
|
|
|
parameter bit [31:0] SC64_VER = 32'h53437632;
|
|
|
|
parameter int CLOCK_FREQUENCY = 32'd100_000_000;
|
|
|
|
parameter bit [31:0] CPU_RESET_VECTOR = {4'(ID_CPU_FLASH), 28'h0035800};
|
|
|
|
parameter int UART_BAUD_RATE = 32'd1_000_000;
|
2021-09-25 20:00:36 +02:00
|
|
|
|
2021-12-10 17:36:30 +01:00
|
|
|
`ifdef DEBUG
|
|
|
|
parameter bit CPU_HAS_UART = 1'b1;
|
|
|
|
`else
|
|
|
|
parameter bit CPU_HAS_UART = 1'b0;
|
|
|
|
`endif
|
|
|
|
|
2021-09-25 20:00:36 +02:00
|
|
|
endpackage
|