data/full_repos/permissive/522064891/efinity/addressDecoder.v
data/verilator_xmls/0e505b33-a2e5-4da6-9903-bf26de57ba0f.xml
module addressDecoder
(
  input [15:0] address,
  input        E,
  input        readNotWrite,
  
  output       romSelect,
  output       ramSelect,
  output       usbSelect
);




  assign romSelect = E && readNotWrite && address[15:11] == 5'b11111;


  assign usbSelect = E && (address[15:0] == 16'hE010 || address[15:0] == 16'hE011);


  assign ramSelect = E && address[15:12] == 4'hD;
endmodule
module addressDecoder
(
  input [15:0] address,
  input        E,
  input        readNotWrite,
  
  output       romSelect,
  output       ramSelect,
  output       usbSelect
);





  assign romSelect = E && readNotWrite && address[15:11] == 5'b11111;


  assign usbSelect = E && (address[15:0] == 16'hE010 || address[15:0] == 16'hE011);


  assign ramSelect = E && address[15:12] == 4'hD;
endmodule