This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<systemc> | |
#include<cstdlib> | |
#include<cstring> | |
using namespace std; | |
using namespace sc_core; | |
SC_MODULE(inverter) | |
{ | |
sc_in<bool> in; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "reader_writer.h" | |
int sc_main(int argc, char **argv) | |
{ | |
/*Declare/define primitive channel -- sc_signal*/ | |
sc_signal<unsigned int> SIG; | |
/*Declare a master -- period 10 ns, duty cycle 50%*/ | |
sc_clock CLK("clock", 10.0, SC_NS, 0.5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef READWRITE_H | |
#define READWRITE_H | |
#include <systemc> | |
using namespace std; | |
using namespace sc_core; | |
SC_MODULE(Read) | |
{ | |
/*Declare i/o ports*/ | |
sc_in<bool> clk; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from pyrsistent import v | |
from scipy.stats import rv_continuous | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as s | |
import matplotlib as mpl | |
import pyplot_themes as themes | |
from scipy.special import gamma, factorial | |
themes.theme_few(scheme="dark", grid=False, ticks=False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Initial Date: May 2022 | |
# Author: Rahul Bhadani | |
# Copyright (c) Rahul Bhadani | |
# All rights reserved. | |
# Requires Python 3.8 or above | |
import math |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scipy.stats import rv_continuous | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as s | |
import matplotlib as mpl | |
import pyplot_themes as themes | |
themes.theme_paul_tol( grid=False, ticks=False,) | |
mpl.rcParams['font.family'] = 'Serif' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as s | |
import matplotlib as mpl | |
import pyplot_themes as themes | |
themes.theme_solarized(scheme="dark", grid=False, ticks=False,) | |
mpl.rcParams['font.family'] = 'Serif' | |
from scipy.stats import rv_continuous | |
class YCube(rv_continuous): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as s | |
import matplotlib as mpl | |
import pyplot_themes as themes | |
themes.theme_solarized(scheme="dark", grid=False, ticks=False,) | |
mpl.rcParams['font.family'] = 'Serif' | |
A = np.random.uniform(low = 0, high = 2, size = 10000) | |
s.set_context('talk') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class OBJECT | |
{ | |
public: | |
const char *a; | |
OBJECT() | |
{ | |
cout<<"Constructor"<<endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <functional> | |
#include <iostream> | |
#include <optional> | |
class Test { | |
public: | |
Test() | |
{ | |
std::cout<<"Default Constructor\n"; |