Skip to content

Instantly share code, notes, and snippets.

Avatar

Ocean Shen OceanS2000

  • Beijing, China
View GitHub Profile
@OceanS2000
OceanS2000 / AdderExample.scala
Created Jul 20, 2021
An example with chisel diplomacy
View AdderExample.scala
import chipsalliance.rocketchip.config.{Config, Field, Parameters}
import chisel3._
import chisel3.util.log2Ceil
import chisel3.internal.sourceinfo.SourceInfo
import chisel3.stage.ChiselStage
import chisel3.util.random.FibonacciLFSR
import freechips.rocketchip.diplomacy._
import freechips.rocketchip.util.ElaborationArtefacts
import java.io.{File, FileWriter}
@OceanS2000
OceanS2000 / luapinyin.tex
Created May 3, 2020
use xpinyin database in luatex
View luapinyin.tex
\documentclass{minimal}
\usepackage{luacode}
\usepackage{luatexja-ruby}
\makeatletter
\def\xpinyin@@pinyin@struct{\vrule width 0pt depth 0.5ex}
\makeatother
\begin{luacode*}
xpinyin = {}
View tikz-text-with-clip.tex
\documentclass{standalone}
\usepackage{tikz}
\tikzstyle{reverseclip}=[insert path={(current page.north east) --
(current page.south east) --
(current page.south west) --
(current page.north west) --
(current page.north east)}
]
@OceanS2000
OceanS2000 / keybase.md
Created Jun 2, 2019
Formal Declaration of KeyBase Identity
View keybase.md

Keybase proof

I hereby claim:

  • I am oceans2000 on github.
  • I am oceanshen (https://keybase.io/oceanshen) on keybase.
  • I have a public key ASAWRJENXD0iy5t73zjbsuVeQD97dcFkcvmy-tzE9jo5SQo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am oceans2000 on github.
  • I am oceanshen (https://keybase.io/oceanshen) on keybase.
  • I have a public key ASAGMcrr18je1rLyNxpnGrSwWF9b9RpDrxwypq_2jFRM-Qo

To claim this, I am signing this object: