Skip to content

Instantly share code, notes, and snippets.

View OceanS2000's full-sized avatar

Ocean Shen OceanS2000

  • Beijing, China
View GitHub Profile
@OceanS2000
OceanS2000 / AdderExample.scala
Created July 20, 2021 16:02
An example with chisel diplomacy
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 16:41
use xpinyin database in luatex
\documentclass{minimal}
\usepackage{luacode}
\usepackage{luatexja-ruby}
\makeatletter
\def\xpinyin@@pinyin@struct{\vrule width 0pt depth 0.5ex}
\makeatother
\begin{luacode*}
xpinyin = {}
\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 June 2, 2019 04:25
Formal Declaration of KeyBase Identity

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:

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: