Help for this page

Select Code to Download


  1. or download this
    write_x("top.inst1.inst2.reg",32'h30,status,"string");
    write_x("mod.ins5.ins7.val",{24'h0,4'h2,variable1,variable2},status,"s
    +tring");
    
  2. or download this
    writing.reg("top.inst1.inst2.reg").write(status,32'h30);
    writing.reg("mod.ins5.ins7.val").write(status,{24'h0,4'h2,variable1,va
    +riable2});
    
  3. or download this
    open (input_file,"input.txt") || die"cannot open file"; 
    open (output_file,"output.txt") || die"cannot open file";
    ...
        $line = <input_file>;
    }