Compare commits

...

1 Commits

Author SHA1 Message Date
laixz c29d3f0532 add copyright & license
Co-authored-by: laixz <laixz@scut.edu.cn>
Co-committed-by: laixz <laixz@scut.edu.cn>
2023-01-16 08:08:45 +08:00
109 changed files with 330 additions and 0 deletions

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pyhcl.simulator import Simulator

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pyhcl.simulator import Simulator

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
class A(Module):

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from functools import reduce
from typing import List

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
class Add(BlackBox):

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from functools import reduce
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
W = 8 # 位宽

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pprint import pprint
from time import time

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pysv import sv, DataType, Reference
from pyhcl.simulator import Simlite, DpiConfig

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pyhcl.simulator import Simlite

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import random
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pysv import sv, DataType, Reference
from pyhcl.simulator import Simlite, DpiConfig

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pysv import sv, DataType, Reference
from pyhcl.simulator import Simlite, DpiConfig

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from functools import reduce
from pyhcl import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
# 读波形
from injector.vcd_reader import VcdReader

View File

@ -1,3 +1,7 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
class ReaderBase:
# 属性excluded_sigs、inputs_only、replay_blocks、signal_values、signal_changes
def __init__(self, replay_blocks, wave_file, excluded_sigs, inputs_only):

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pysv import sv, DataType, Reference
from pyhcl.simulator import Simlite, DpiConfig

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pysv import sv, DataType, Reference
from pyhcl.simulator import Simlite, DpiConfig

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pysv import sv, DataType, Reference
from pyhcl.simulator import Simlite, DpiConfig

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
# from pyhcl import *
# from pysv import sv, DataType, Reference
# from pyhcl.simulator import Simlite, DpiConfig

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import os
import sys
import re

View File

@ -1,3 +1,7 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
class FullAdder(Module):

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import Type, Union, Dict

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
# Eventloop 是asyncio应用的核心,把一些异步函数注册到这个事件循环上,事件循环会循环执行这些函数,
# 当执行到某个函数时如果它正在等待I/O返回如它正在进行网络请求或者sleep操作事件循环会暂停它的执行去执行其他的函数
# 当某个函数完成I/O后会恢复下次循环到它的时候继续执行。

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import asyncio
import time

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pyhcl.util.firrtltools import addfirrtlmodule
from pyhcl.simulator import Simlite

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.simulator.simlite_firrtl import Simlite
import random

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pyhcl.simulator import Simlite
import random

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pyhcl.simulator import Simlite
import random

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from pysv import sv, DataType, Reference
from pyhcl.simulator import Simlite, DpiConfig

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.simulator.simlite_verilog import Simlite
import random

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.simulator.simlite_verilog import Simlite
import random

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.util.pysvtools import compile_and_binding_all_func
from pyhcl.simulator.simlite_verilog import Simlite, DpiConfig
from pysv import sv, DataType, Reference

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
class Clock_manager:
_clocks = []
_resets = []

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from __future__ import annotations
from dataclasses import dataclass, field
from typing import List

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
class DynamicContext:
_lst = []
_scopeId = [object()]

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from collections import deque
from typing import Optional, Dict, Counter

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.core._utils import get_attr

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.core._repr import Node
from pyhcl.core._utils import get_attr, has_attr

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import logging
from dataclasses import dataclass, field
from typing import Union

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
def get_attr(obj, item):
try:
return object.__getattribute__(obj, item)

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from __future__ import annotations
from dataclasses import dataclass

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from dataclasses import dataclass
from typing import Optional

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from __future__ import annotations
from dataclasses import dataclass

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.core._clock_manager import Clock_manager
class clockdomin:

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from __future__ import annotations
from pyhcl.core._cond import CondBlock, When, Elsewhen, Otherwise

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.core._clock_manager import Clock_manager
class DslChecker:

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import os
from collections import Counter
from typing import Dict

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from functools import reduce

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from dataclasses import dataclass, field
from typing import Type, Union

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from __future__ import annotations
from dataclasses import dataclass, field, InitVar

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.core._dynamic_ctx import DynamicContext
from pyhcl.core._utils import get_attr
from pyhcl.core._repr import SubField

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from .module import Module
class ModuleP:

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from abc import ABC, abstractclassmethod
from dataclasses import dataclass

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from dataclasses import dataclass, field
from typing import Union, Generator, List

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.ir import low_ir
from pyhcl.core._dynamic_ctx import DynamicContext

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from __future__ import annotations
from abc import ABC

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from abc import ABC, abstractmethod

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import logging
from abc import ABC
from dataclasses import dataclass

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import math
from collections import OrderedDict, defaultdict
from copy import copy, deepcopy

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from .channel import AxiIOFactory

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
"""

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
from enum import Enum

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List
class Pass:

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from dataclasses import dataclass
from typing import Dict, List
from pyhcl.ir.low_ir import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List
from pyhcl.ir.low_ir import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List, Dict
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *
from typing import List, Dict

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List
from numpy import isin

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from dataclasses import dataclass
from typing import List, Dict
from pyhcl.ir.low_ir import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import List, Dict
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl.ir.low_ir import *
from typing import List
from dataclasses import dataclass

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from sqlite3 import connect
from typing import List
from pyhcl.ir.low_ir import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import math
from typing import List

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from dataclasses import dataclass
from pyhcl.ir.low_ir import *
from pyhcl.passes._pass import Pass

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from abc import ABC
from pyhcl.ir.low_ir import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import logging
import mmap
import os

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import os
import subprocess

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import os
import subprocess

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
import os
import subprocess
import re

View File

@ -1,3 +1,6 @@
// Copyright (c) 2019 scutdig
// Licensed under the MIT license.
#include <verilated.h>
#include <verilated_vcd_c.h>
#include <iostream>

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from abc import ABC, abstractclassmethod
from typing import List
from pyhcl.ir.low_ir import *

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from functools import reduce
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *

View File

@ -1,3 +1,7 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
class TesterException(Exception):
def __init__(self, message: str):
self.message = message

View File

@ -1,3 +1,6 @@
# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from typing import Dict, List
from collections import OrderedDict
from copy import deepcopy

Some files were not shown because too many files have changed in this diff Show More