data/full_repos/permissive/524707443/rtl/chip_select.v
data/verilator_xmls/7a5ab209-ab02-41a4-9a51-8794fffc9f46.xml
function z80_mem_cs;
        input [15:0] base_address;
        input  [7:0] width;
begin
    z80_mem_cs = ( z80_addr >> width == base_address >> width ) & !MREQ_n;
end
endfunction
function z80_mem_cs;

        input [15:0] base_address;
        input  [7:0] width;
begin
    z80_mem_cs = ( z80_addr >> width == base_address >> width ) & !MREQ_n;
end
endfunction