Commit Graph

43 Commits

Author SHA1 Message Date
Miical dfd8fb6ddf Refine XPin and add an interface to get the original value 2024-10-03 22:02:54 +08:00
yaozhicheng 325ecd0269 pyton: touch __init__.py in output dir 2024-09-19 15:27:18 +08:00
yaozhicheng 7358d986b7 refine: default purge DUT 2024-08-27 16:34:48 +08:00
yaozhicheng ca4a946c80 new feature: add cascaded ports for python 2024-07-29 17:46:23 +08:00
yaozhicheng ff7e1b984f refine: del exec __init__ 2024-07-29 16:17:04 +08:00
yaozhicheng ed1bd11e4a add option --cp_lib 2024-07-29 05:46:49 +00:00
yaozhicheng 05952736a5 cmake: add func search_libs 2024-07-26 13:41:42 +08:00
yaozhicheng 5e09957aa3 fix: handle import error 2024-07-26 12:23:09 +08:00
Makiras 538409a8b3 update cmake config for multi verilator version and support higher verilator version
picker will find VERILATOR_ROOT by using Verilator 5.026 2024-06-15 rev v5.026

Copyright 2003-2024 by Wilson Snyder.  Verilator is free software; you can
redistribute it and/or modify the Verilator internals under the terms of
either the GNU Lesser General Public License Version 3 or the Perl Artistic
License Version 2.0.

See https://verilator.org for documentation

Summary of configuration:
  Compiled in defaults if not in environment:
    SYSTEMC            =
    SYSTEMC_ARCH       =
    SYSTEMC_INCLUDE    =
    SYSTEMC_LIBDIR     =
    VERILATOR_ROOT     = /opt/verilator5/share/verilator
    SystemC system-wide = 0

Environment:
    MAKE               =
    PERL               =
    SYSTEMC            =
    SYSTEMC_ARCH       =
    SYSTEMC_INCLUDE    =
    SYSTEMC_LIBDIR     =
    VERILATOR_BIN      =
    VERILATOR_ROOT     = /opt/verilator5/share/verilator

Supported features (compiled-in or forced by environment):
    COROUTINES         = 1
    SYSTEMC            =  command
2024-07-25 17:01:37 +08:00
Makiras 98d467d317 optimize argc and argv passage, auto detect whether the argv[0] is filename or args 2024-07-25 06:58:51 +00:00
yaozhicheng c88d3c7d05 fix: []string args for dut 2024-07-25 14:26:58 +08:00
Makiras 2d8e640ef8 update Caches and RnadomGenerator VCS example 2024-07-17 10:34:01 +08:00
yaozhicheng 772cd9efe8 uniform mk 2024-07-17 10:34:01 +08:00
yaozhicheng 805753f834 uniform dut.xclock, dut.xport 2024-07-17 10:34:01 +08:00
yaozhicheng c716808fd2 clean up workspace 2024-07-17 10:34:01 +08:00
yaozhicheng 3f857c4dbb refine user APIs 2024-07-17 10:34:01 +08:00
Makiras 33e7314c73 refactor libDUT init function 2024-07-17 10:34:01 +08:00
Makiras a777499620 optimize multi-instance with hash DPI func name
also add dlclose to release namespace and flag to reuse main namespace
2024-07-17 10:34:01 +08:00
Makiras 7cdd8d576c refacted DutUnifiedBase without inhert and change dlmopen abstract level
due to dlmopen DPI library is simulator-related, we choose to dlmopen whole libUT.so without simulator-related code
2024-07-17 10:34:01 +08:00
Makiras a1192bd277 add multi-instance support with dlmopen for VERILATOR 2024-07-17 10:34:01 +08:00
yaozhicheng f83be8ae7f mute output 2024-06-25 19:48:07 +08:00
yaozhicheng 32d7ca44c6 add default NULL dpi read and write 2024-06-03 15:57:06 +08:00
Miical ad03526c25 Update the python template to change the waveform and coverage file names at initialization 2024-04-29 16:33:17 +08:00
FrankOu2001 292151ec52 Update & Fix bugs: Wrap methods `StepRis` and `StepFal` of `xclock` in `template/python/dut.py`; Fixed bugs in `template/python/dut.py` where calling async functions resulted in coroutines never being awaited. 2024-04-28 11:23:47 +08:00
FrankOu2001 eb5b4b4b06 Fix bugs: Fixed a bug in `template/python/dut.py` where it should have been "RunStep" instead of "RunSetp". 2024-04-27 13:36:42 +08:00
Makiras e4d55c8db3 fix bugs: coverage needs verbose mode, example finalize 2024-04-25 16:18:01 +08:00
Makiras af57c824e1 fix rpath using relative path need $ORIGIN 2024-04-25 16:18:01 +08:00
Makiras f61a0118b1 fix: verilator failed to dump wave in python, optimize example 2024-03-19 06:32:14 +00:00
Makiras 18822e1301 add non-root include/lib search 2024-01-25 02:45:42 +00:00
Miical efc0a13f3d add python test after generation 2024-01-16 02:06:48 +00:00
Miical c5a10f42b6 modify the Python template, add XPin, and package the generated Python code as a Python package. 2023-12-26 11:19:24 +08:00
Makiras e900e948c3 workaround with LDPRELOAD for VCS 2023-12-14 09:09:52 +00:00
Makiras 8705b0bf10 workaround optimize python lib install, add XDATA c-function-pointer support for python swig 2023-12-14 08:20:31 +00:00
Makiras 81b5521004 [wip] for python 2023-12-14 06:34:58 +00:00
Makiras e8374d56c7 Refactor the overall code logic.
Generate encapsulated C++ classes based on dpi and codegen.
2023-10-27 09:32:38 +00:00
Makiras b71f4a4cfc bump version to 0.0.2 for verilator 5.014 support
add basic shim layer for swig using
2023-09-20 03:19:41 +00:00
yaozhicheng 75ba3dec3b add more env check 2023-08-11 17:41:37 +08:00
yaozhicheng a0b656c29c refine examples 2023-08-09 22:31:09 +08:00
yaozhicheng ed14363ad3 update 2023-08-09 15:49:01 +08:00
yaozhicheng b4754bd751 update 2023-08-04 19:30:21 +08:00
yaozhicheng 6e90e9cbbc update 2023-08-04 14:10:43 +08:00
yaozhicheng 8f5dafc42b update 2023-08-03 22:52:12 +08:00
yaozhicheng dd7566b506 update 2023-07-28 23:01:18 +08:00