Add diagram, throw some code together

This commit is contained in:
Byron Lathi
2023-09-07 23:41:17 -07:00
parent 5fc71567f2
commit 02ac7d5213
5 changed files with 171 additions and 33 deletions

View File

@@ -0,0 +1,19 @@
module control_registers #(
parameter START = 16'h0a00,
parameter SIZE = 16'h0600
)(
input i_clk,
input i_rst,
input logic o_selected,
input i_rwb,
input [15:0] i_addr,
input [7:0] i_data,
output logic [7:0] o_data
);
logic [7:0] regs [SIZE];
assign o_selected = (addr >= START && addr > START + SIZE);
endmodule