Skip to content

Commit

Permalink
remove bram for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
FRoith committed Oct 30, 2024
1 parent 26329f4 commit 82f6ec0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/top_ihp.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
`include "wb_spi.v"
`include "wb_uart.v"
`include "wb_oisc.v"
`include "wb_bram.v"
//`include "wb_bram.v"

`define SPI_RAM_BIT 31
`define SPI_ROM_BIT 30
Expand Down Expand Up @@ -90,33 +90,34 @@ module top_ihp(
wire wb_cyc_uart = wb_cyc & wb_adr[`UART_BIT];
wire wb_cyc_gpio = wb_cyc & wb_adr[`GPIO_BIT];
wire wb_cyc_spi = wb_cyc & wb_adr[`SPI_BIT];
wire wb_cyc_bram = wb_cyc & wb_adr[`BRAM_BIT];
// wire wb_cyc_bram = wb_cyc & wb_adr[`BRAM_BIT];

wire wb_ack_gpio;
wire wb_ack_uart;
wire wb_ack_rom;
wire wb_ack_ram;
wire wb_ack_spi;
wire wb_ack_bram;
// wire wb_ack_bram;

wire [31:0] wb_dati_uart;
wire [31:0] wb_dati_gpio;
wire [31:0] wb_dati_rom;
wire [31:0] wb_dati_ram;
wire [31:0] wb_dati_spi;
wire [31:0] wb_dati_bram;
// wire [31:0] wb_dati_bram;

assign wb_ack = wb_ack_uart |
wb_ack_gpio |
wb_ack_rom |
wb_ack_ram |
wb_ack_spi;
wb_ack_spi; // | wb_ack_bram;
assign wb_dati = wb_ack_uart ? wb_dati_uart :
wb_ack_gpio ? wb_dati_gpio :
wb_ack_rom ? wb_dati_rom :
wb_ack_ram ? wb_dati_ram :
wb_ack_spi ? wb_dati_spi :
wb_ack_bram ? wb_dati_bram : 0;
// wb_ack_bram ? wb_dati_bram :
0;

wb_uart wb_uart(.clk(clk),
.rst_n(rst_n),
Expand Down Expand Up @@ -200,15 +201,15 @@ module top_ihp(
.gpio_o(gpio_o)
);

wb_bram wb_bram(.clk(clk),
.adr_i(wb_adr[7:0]),
.dat_i(wb_dato),
.dat_o(wb_dati_bram),
.we_i(wb_we),
.sel_i(wb_sel),
.stb_i(wb_stb),
.ack_o(wb_ack_bram),
.cyc_i(wb_cyc_bram));
// wb_bram wb_bram(.clk(clk),
// .adr_i(wb_adr[7:0]),
// .dat_i(wb_dato),
// .dat_o(wb_dati_bram),
// .we_i(wb_we),
// .sel_i(wb_sel),
// .stb_i(wb_stb),
// .ack_o(wb_ack_bram),
// .cyc_i(wb_cyc_bram));

endmodule
`endif
File renamed without changes.

0 comments on commit 82f6ec0

Please sign in to comment.