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 [3:0] set_as_4;
      input [9:0]     adr;
      input [3:0]     d;

      reg [15:0]      wdata_i = {{4{d[3]}},{4{d[2]}},{4{d[1]}},{4{d[0]}}};
      reg [15:0]      wmask_i = adr[9] ? (adr[8] ? 16'h7777 : 16'hbbbb) : (adr[8] ? 16'hdddd : 16'heeee);
      memory[adr[7:0]] = (~wmask_i & wdata_i) | (wmask_i & memory[adr[7:0]]);
      set_as_4 = 0;
   endfunction
function [3:0] set_as_4;

      input [9:0]     adr;
      input [3:0]     d;

      reg [15:0]      wdata_i = {{4{d[3]}},{4{d[2]}},{4{d[1]}},{4{d[0]}}};
      reg [15:0]      wmask_i = adr[9] ? (adr[8] ? 16'h7777 : 16'hbbbb) : (adr[8] ? 16'hdddd : 16'heeee);
      memory[adr[7:0]] = (~wmask_i & wdata_i) | (wmask_i & memory[adr[7:0]]);
      set_as_4 = 0;
   endfunction