Skip to content

Instantly share code, notes, and snippets.

@mmitti
mmitti / FFT.cpp
Last active October 1, 2023 07:43
FFT
// from https://github.com/mmitti/miAudioEvaluator
// MIT License
// Copyright (c)mmitti
#include "FFT.h"
#include <cmath>
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdexcept>
#include <type_traits>
#
# This file is the dnndk recipe.
#
SUMMARY = "DNNDK Libraries"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://bin/dexplorer \
################################################################
# This is a generated script based on design: design_1
#
# Though there are limitations about the generated script,
# the main purpose of this utility is to make learning
# IP Integrator Tcl commands easier.
################################################################
namespace eval _tcl {
@mmitti
mmitti / MatMult.v
Created January 29, 2019 14:10
4*4の行列積回路(適当実装)
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2019/01/29 22:33:37
// Design Name:
// Module Name: MatMult
// Project Name:
// Target Devices:
@mmitti
mmitti / https_check.py
Created June 15, 2018 05:57
HTTPS対応と証明書の発行元を確認するスクリプト
import ssl
import OpenSSL
import requests
from tqdm import tqdm
import threading
import concurrent.futures
import time
result_list = []
lock = threading.Lock()
@mmitti
mmitti / rand.v
Created May 16, 2018 14:15
XorShiftVerilogModule
// XOR Shift
// from Wikipedia https://ja.wikipedia.org/wiki/Xorshift
module rand(
input CLK,
input RST,
output reg [31:0] X
);
// XOR Shift
wire [31:0] y_1 = X ^ ({X, 13'd0});
wire [31:0] y_2 = y_1 ^ y_1[31:17];
@mmitti
mmitti / calc.py
Created October 18, 2017 08:22
calc.py
import re
from pyparsing import Word, ParseException, Literal, CaselessLiteral \
, Combine, Optional, nums, Or, Forward, ZeroOrMore, StringEnd, oneOf, Group, ParseResults
import math
class CaluculatorException(Exception):
def __init__(self, str):
Exception.__init__(self, str)
class CaluculationSyntaxError(CaluculatorException):
def __init__(self, str):