data/full_repos/permissive/195227969/work/code/sb_sim_rtl/SB_RAM40_4K.v
 line:50: before: "case"
data/verilator_xmls/6345ccb1-b353-4072-b15a-f2cb0251d2fe.xml
function [1:0] set_as_2;
      input [10:0]    adr;
      input [1:0]     d;

      reg [15:0]      wdata_i = {{8{d[1]}},{8{d[0]}}};
      reg [15:0]      wmask_i = adr[10] ?
                      (adr[9] ? (adr[8] ? 16'h7f7f : 16'hbfbf) : (adr[8] ? 16'hdfdf : 16'hefef)) :
                      (adr[9] ? (adr[8] ? 16'hf7f7 : 16'hfbfb) : (adr[8] ? 16'hfdfd : 16'hfefe));
      memory[adr[7:0]] = (~wmask_i & wdata_i) | (wmask_i & memory[adr[7:0]]);
      set_as_2 = 0;
   endfunction
function [1:0] set_as_2;

      input [10:0]    adr;
      input [1:0]     d;

      reg [15:0]      wdata_i = {{8{d[1]}},{8{d[0]}}};
      reg [15:0]      wmask_i = adr[10] ?
                      (adr[9] ? (adr[8] ? 16'h7f7f : 16'hbfbf) : (adr[8] ? 16'hdfdf : 16'hefef)) :
                      (adr[9] ? (adr[8] ? 16'hf7f7 : 16'hfbfb) : (adr[8] ? 16'hfdfd : 16'hfefe));
      memory[adr[7:0]] = (~wmask_i & wdata_i) | (wmask_i & memory[adr[7:0]]);
      set_as_2 = 0;
   endfunction