Skip to content

Instantly share code, notes, and snippets.

@zhuzhzh
zhuzhzh / vmod.go
Created March 28, 2023 16:03
process verilog code
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"strings"
"github.com/urfave/cli/v2"
@zhuzhzh
zhuzhzh / github_local_push_error.md
Created August 5, 2017 06:35
github_local_push_error.md

提交本地代码到github

提交时出现下面错误

harriszh Sat 14:13@ ~/trunk/vpi$ git push -u origin master
To [email protected]:zhuzhzh/vpiIntro.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:zhuzhzh/vpiIntro.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again.  See the 'Note about
fast-forwards' section of 'git push --help' for details.
@zhuzhzh
zhuzhzh / tclsdl_solution.md
Created August 5, 2017 05:28
tcl_sdl_img_regression.md
  1. 把所有的图像文件名称放到一个文件里, 一行一个
  2. 把图像文件名读到一个tcl的列表里 注意tcNames需要是全局变量
set FSIZE_B 100
set gcnt 0
array set tcNames { }
# read out the testcase name fromt he file
proc getTCNames {path} {
    global tcNames

used to save my atom setting