Skip to content

Instantly share code, notes, and snippets.

View raytroop's full-sized avatar


View GitHub Profile
raytroop / rpm
Last active December 24, 2021 14:16
Rocky Linux 8 rpm for cadence binary and cdnshelp
sudo yum install openssl compat-openssl10 qca-qt5-ossl.x86_64 openssl-devel
raytroop / RockyLinux8.txt
Last active December 7, 2021 16:10
Rocky Linux 8 extend LVM in VMware
1) gparted extend
lvextend -l +100%FREE /dev/rl/root
xfs_growfs /dev/mapper/rl-root
usefull command:
df -h
fdisk -l
raytroop / SBR.m
Created November 26, 2021 01:14
SBR ref. Fast and Accurate Estimation of Statistical Eye Diagram for Nonlinear High-Speed Links
A = zeros(10,21);
n = [1:10];
% post cursor
for m = 1:3
A(m, 11+n(m)) = 0.5;
A(m, 11-n(m)) = 0.5;
% one
raytroop / README.txt
Last active October 15, 2021 18:58
vimscript memo
a: -> variable scope
s: -> current script’s namespace
b: -> local to the current buffer
raytroop / README.txt
Created October 14, 2021 14:55
jump through placerhold of coc.nvim
g:coc_snippet_next g:coc_snippet_next
Trigger key for going to the next snippet position, applied in insert
and select mode.
Only works when snippet session is activated.
Default: <C-j>
g:coc_snippet_prev g:coc_snippet_prev
raytroop /
Created October 13, 2021 17:37
npm install local package
git clone
cd svlangserver/
npm pack
npm install -g imc-trading-svlangserver-0.3.4.tgz
raytroop /
Last active October 8, 2021 16:37
vim keybinding

CTRL-O : Go to [count] Older cursor position in jump list
CTRL-I : Go to [count] newer cursor position in jump list
:bf : Go to first buffer in buffer list.
:bn :Go to [N]th next buffer in buffer list.
gf : open in the same window ("goto file")
<c-w>f open in a new window (Ctrl-w f)
<c-w>gf open in a new tab (Ctrl-w gf)
Next tab: gt
Prior tab: gT
Numbered tab: nnngt \

raytroop /
Created October 8, 2021 15:31
questasim sim flow
vlib work
vlog -f filelist
# "-c": command line mode
vsim -voptargs=+acc -c -do "run 100ns; exit" work.tb1_ref
raytroop /
Last active February 7, 2022 15:45
compile vim from source with GUI support
# gtk3 in Rocky Linux 8.5
./configure --with-features=huge --enable-gui=gtk3 --enable-python3interp --prefix=/usr
make -j`nproc`
sudo make install
import uvm_pkg :: *;
class my_seq_item extends uvm_sequence_item;
rand logic [7:0] addr;
rand logic [7:0] data;
constraint addr_range_cn {
addr inside {[10:20]};
constraint data_range_cn {