Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

raytroop

🎯
Focusing
View GitHub Profile
@raytroop
raytroop / rpm
Last active Dec 24, 2021
Rocky Linux 8 rpm for cadence binary and cdnshelp
View rpm
sudo yum install openssl compat-openssl10 qca-qt5-ossl.x86_64 openssl-devel
@raytroop
raytroop / RockyLinux8.txt
Last active Dec 7, 2021
Rocky Linux 8 extend LVM in VMware
View RockyLinux8.txt
1) gparted extend
2)
lvextend -l +100%FREE /dev/rl/root
3)
xfs_growfs /dev/mapper/rl-root
usefull command:
df -h
lvdisplay
fdisk -l
@raytroop
raytroop / SBR.m
Created Nov 26, 2021
SBR ref. Fast and Accurate Estimation of Statistical Eye Diagram for Nonlinear High-Speed Links
View SBR.m
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;
end
% one
@raytroop
raytroop / README.txt
Last active Oct 15, 2021
vimscript memo
View README.txt
a: -> variable scope
s: -> current script’s namespace
b: -> local to the current buffer
@raytroop
raytroop / README.txt
Created Oct 14, 2021
jump through placerhold of coc.nvim
View README.txt
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
raytroop / install.sh
Created Oct 13, 2021
npm install local package
View install.sh
git clone https://github.com/raytroop/svlangserver.git
cd svlangserver/
npm pack
npm install -g imc-trading-svlangserver-0.3.4.tgz
@raytroop
raytroop / vimkey.md
Last active Oct 8, 2021
vim keybinding
View vimkey.md

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
raytroop / run.sh
Created Oct 8, 2021
questasim sim flow
View run.sh
vlib work
vlog -f filelist tb1.sv
# "-c": command line mode
vsim -voptargs=+acc -c -do "run 100ns; exit" work.tb1_ref
@raytroop
raytroop / install.sh
Last active Feb 7, 2022
compile vim from source with GUI support
View install.sh
# gtk3 in Rocky Linux 8.5
./configure --with-features=huge --enable-gui=gtk3 --enable-python3interp --prefix=/usr
make -j`nproc`
sudo make install
View automatic_objection_raise_drop_in_uvm_1_2_ex.sv
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 {