Skip to content

Instantly share code, notes, and snippets.

View buttercutter's full-sized avatar

Phung Cheng Fei buttercutter

View GitHub Profile
@buttercutter
buttercutter / .gitignore
Last active May 8, 2020 10:28
A simple AXI demo
axi_demo
axi_demo_tb.vcd
axi_demo_cover/
axi_demo_proof/
@buttercutter
buttercutter / YOLOv3_+_AdderNet.ipynb
Last active May 20, 2020 06:37
YOLOv3 + AdderNet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
* Copyright (C) 2011-2018 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
@buttercutter
buttercutter / LDO.asc
Last active May 20, 2020 13:22
A simple LDO circuit implemented in LTSpice
Version 4
SHEET 1 3740 1588
WIRE -128 80 -304 80
WIRE 48 80 -128 80
WIRE 1216 80 48 80
WIRE 2064 80 1216 80
WIRE 2320 80 2064 80
WIRE 2384 80 2320 80
WIRE 2784 80 2384 80
WIRE 2848 80 2784 80
@buttercutter
buttercutter / PKGBUILD_for_PSW
Created February 5, 2020 10:33
PKGBUILD for installing intel SGX SDK and PSW https://bbs.archlinux.org/viewtopic.php?id=252511
# Maintainer: promach
pkgname=linux-sgx-psw
pkgver=r300.9ddec08f
pkgrel=1
pkgdesc="Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application developers seeking to protect select code and data from disclosure or modification"
arch=('i686' 'x86_64')
url="https://01.org/intel-softwareguard-extensions"
license=('GPL')
groups=()
depends=()
@buttercutter
buttercutter / libsgx_enclave_common.so.1
Created January 30, 2020 11:23
Disassembled assembly code of libsgx_enclave_common.so.1 using Ghidra
This file has been truncated, but you can view the full file.
//
// segment_0.1
// Loadable segment [0x0 - 0x10f82] (disabled execute bit)
// ram: 00100000-001001c7
//
assume DF = 0x0 (Default)
00100000 7f 45 4c Elf64_Ehdr
46 02 01
01 00 00
00100000 7f db 7Fh e_ident_magi
@buttercutter
buttercutter / .gitignore
Last active November 19, 2021 06:23
AXI4 verilog coding for interfacing with DDR AXI controller
#sby results
load_data_from_bram_prf/
load_data_from_bram_cvr/
#yosys synthesis result
load_data_from_bram.json
@buttercutter
buttercutter / PKGBUILD
Last active February 2, 2021 08:15
PKGBUILD for SonnetSuite Professional
pkgname=sonnetsuite
pkgver=17.52.1
pkgrel=1
pkgdesc="A 3D Planar High-Frequency Electromagnetic Software"
arch=("x86_64")
url="http://www.sonnetsoftware.com/products/sonnet-suites/"
license=('custom')
depends=('openmotif' 'qwtpolar')
makedepends=('icoutils')
source=("http://www.sonnetsoftware.com/sonnetdl/Sonnet-17-52/sonnetsuite.17.52.1.linux64.tar"
@buttercutter
buttercutter / planar_marchand_balun.anf
Last active September 4, 2019 05:20
A planar marchand balun from the paper : New Design Formulas for Impedance-Transforming 3-dB Marchand Baluns
$begin 'AnsoftNeutralFile'
Version(4, 0)
Source('Ansoft Designer', '2018.2.0')
Date='Mon Aug 19 14:26:50 2019'
DefaultUnits='m'
$begin 'PadShapes'
'Circle0.00085'(Circle(0.00085))
$end 'PadShapes'
$begin 'Padstacks'
$begin 'Round 0.85mm/0.75mm'
$begin 'AnsoftNeutralFile'
Version(4, 0)
Source('Ansoft Designer', '2018.2.0')
Date='Mon Aug 19 00:02:00 2019'
DefaultUnits='m'
$begin 'Symbols'
$begin 'Multi-Section_Coupled_Line_Balun'
$begin 'SymPins'
$begin 'SymPinDef'
SymPin('Port1', -0.00508, 0, 0, 0, 0.00254, false, false, '')