Skip to content

Instantly share code, notes, and snippets.

@cyyself
Last active July 14, 2024 11:18
Show Gist options
  • Save cyyself/b2376c13f2eb8c2e587ca7d7ede2f6e8 to your computer and use it in GitHub Desktop.
Save cyyself/b2376c13f2eb8c2e587ca7d7ede2f6e8 to your computer and use it in GitHub Desktop.
sed -i 's/\*\ vlSelf/\&\ vlSelf/g' *.cpp *.h
sed -i 's/vlSelf->/vlSelf./g' *.cpp *.h
sed -i 's/\&(vlSymsp->TOP)/vlSymsp->TOP/g' *.cpp *.h
sed -i 's/(\&vlSymsp->TOP__t)/(vlSymsp->TOP__t)/g' *.cpp *.h
sed -i 's/rootp{vlSymsp->TOP}/rootp{\&(vlSymsp->TOP)}/g' *.cpp *.h
sed -i 's/___024unit\*\ vlSelf/___024unit\&\ vlSelf/g' *.cpp *.h
sed -i 's/ctor_var_reset(this);/ctor_var_reset(*this);/g' *.cpp *.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment