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 [7:0] set_as_8;
      input [8:0]     adr;
      input [7:0]     d;

      reg [15:0]      wdata_i = {{2{d[7]}},{2{d[6]}},{2{d[5]}},{2{d[4]}},{2{d[3]}},{2{d[2]}},{2{d[1]}},{2{d[0]}}};
      reg [15:0]      wmask_i = adr[8] ? 16'h5555 : 16'haaaa;
      memory[adr[7:0]] = (~wmask_i & wdata_i) | (wmask_i & memory[adr[7:0]]);
      set_as_8 = 0;
   endfunction
function [7:0] set_as_8;

      input [8:0]     adr;
      input [7:0]     d;

      reg [15:0]      wdata_i = {{2{d[7]}},{2{d[6]}},{2{d[5]}},{2{d[4]}},{2{d[3]}},{2{d[2]}},{2{d[1]}},{2{d[0]}}};
      reg [15:0]      wmask_i = adr[8] ? 16'h5555 : 16'haaaa;
      memory[adr[7:0]] = (~wmask_i & wdata_i) | (wmask_i & memory[adr[7:0]]);
      set_as_8 = 0;
   endfunction