`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date: 12/16/2022 05:46:30 PM
// Design Name: 
// Module Name: address_decode
// Project Name: 
// Target Devices: 
// Tool Versions: 
// Description: 
// 
// Dependencies: 
// 
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
// 
//////////////////////////////////////////////////////////////////////////////////


module address_decode#(
    parameter ADDRESS_BITS = 16,
    parameter BASE_ADDRESS = 'h0,
    parameter RANGE = 2048)(
    input [ADDRESS_BITS - 1:0] address_in,
    output address_valid
    );
    
    assign address_valid = (address_in >= BASE_ADDRESS && address_in < BASE_ADDRESS + RANGE)?1:0;
    
endmodule
