Hspice-Wave-Generator

所属分类:音频处理
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2021-12-29 13:18:26
上 传 者sh-1993
说明:  Hspice波形发生器是一种用于快速生成Hspice格式的刺激源的工具。所有刺激源都基于`pwl`func...,
(Hspice-Wave-Generator is a tool used to quickly generate stimuli souces of hspice format. All the stimuli sources are based on `pwl` function of HSPICE and the specific complex operations of writing hspice description are encapsulated and the user only needs to provide the array input.)

文件列表:
doc/ (0, 2021-12-29)
doc/flow.png (4216, 2021-12-29)
doc/wave-example.png (162013, 2021-12-29)
example/ (0, 2021-12-29)
example/cpu_sim/ (0, 2021-12-29)
example/cpu_sim/case1/ (0, 2021-12-29)
example/cpu_sim/case1/cpu_sim.sp (1422, 2021-12-29)
example/cpu_sim/netlist/ (0, 2021-12-29)
example/cpu_sim/netlist/cpu_core_5.sp (34461, 2021-12-29)
example/cpu_sim/run.sh (295, 2021-12-29)
example/cpu_sim/source/ (0, 2021-12-29)
example/cpu_sim/source/Vsource3_1.txt (10160, 2021-12-29)
example/models/ (0, 2021-12-29)
example/models/45nm/ (0, 2021-12-29)
example/models/45nm/NMOS_VTL.inc (5506, 2021-12-29)
example/models/45nm/PMOS_VTL.inc (5662, 2021-12-29)
example/models/7nm/ (0, 2021-12-29)
example/models/7nm/7nfet.pm (10672, 2021-12-29)
example/models/7nm/7pfet.pm (10670, 2021-12-29)
version1/ (0, 2021-12-29)
version1/Vsource.txt (10347, 2021-12-29)
version1/hspice.py (6662, 2021-12-29)
version1/main.py (3724, 2021-12-29)
version1/signal.py (2044, 2021-12-29)
version2/ (0, 2021-12-29)
version2/Vsource2.txt (10347, 2021-12-29)
version2/Vsource2_2.txt (9967, 2021-12-29)
version2/Vsource2_3.txt (10133, 2021-12-29)
version2/Vsource2_4.txt (28564, 2021-12-29)
version2/hspice.py (6662, 2021-12-29)
version2/main.py (5318, 2021-12-29)
version2/signal2.py (2791, 2021-12-29)
version3/ (0, 2021-12-29)
version3/Vsource3_1.txt (10160, 2021-12-29)
version3/Vsource3_2.txt (10303, 2021-12-29)
version3/Vsource3_3.txt (10338, 2021-12-29)
version3/Vsource3_4.txt (9964, 2021-12-29)
version3/Vsource3_5.txt (9812, 2021-12-29)
version3/hspice3.py (6804, 2021-12-29)
... ...

# Hspice-Wave-Generator ## Introduction **Hspice-Wave-Generator** is a tool used to quickly generate stimuli souces of hspice format. The tools are consisted of 3 parts and they are implemented using Python. 1. The flow description contains the description about the total computation flow using the instruction function. 2. The basic instruction is the function of the instruction. 3. And the process of HSpice transfer is a format converter which can convert the bitstream into the description with HSpice format. ![flow](https://github.com/ColsonZhang/Hspice-Wave-Generator/blob/master/./doc/flow.png "the flow") All the stimuli sources are based on `pwl` function of HSPICE and the specific complex operations of writing hspice description are encapsulated and the user only needs to provide the array input. ## Content ``` ├───doc ├───example │ ├───cpu_sim │ │ ├───case1 │ │ ├───netlist │ │ └───source │ └───models │ ├───45nm │ └───7nm ├───version1 ├───version2 └───version ``` The doc folder contains the images of the README. The example folder contains a hspice example using the generated source by version2 or version3. The version1, version2 and version3 contain differrent description of the stimuli sources. ## Usage To generate your stilimu source, you add the operation of your instruction in the signal.py. Then you can modify the process of the operation in the main.py. Finally, you can use `python main.py` to get the stimuli sources. ## Example The example is a simple cpu, which only supports multiplication and addition operation. In the cpu, there are SRAM, ALU and 3 registers. The version2 and version3 can generate the stimuli source to drive the hspice simulaiton of the cpu. In version3, the `main.py` gives the test cases, which using the cpu to do the 2x2 marix multiplicaiton. After defining the instruction's detailed operation, it's easy to describe the overall process. The next image shows the stimuli sources generated by this tool. The sources conclude WL<15:0>, Din<3:0>, Pre-Charge, SA_EN, etc. ![./doc/wave-example.png](https://github.com/ColsonZhang/Hspice-Wave-Generator/blob/master/./doc/wave-example.png)

近期下载者

相关文件


收藏者