Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.21...3.31)
project(ZlibValidation
LANGUAGES CXX
VERSION 1.1.0
VERSION 1.1.1
)

# Define author information
Expand Down
7 changes: 6 additions & 1 deletion doc/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,4 +422,9 @@
- 移除 `FetchContent` 中的 `QUIET` 选项,增加必要提示信息,更清晰地展示依赖库的获取状态。
- 项目版本更新至 `v1.1.0`。
- 明确 CMake 版本需求为 `(VERSION 3.21...3.31)`,确保项目在指定版本范围内构建。
- 在 `README.md` 中,特别感谢 `ZlibBoost` 项目,并新增编译文档和参考手册的教程,同时将 `ccache` 和 `lld` 列为可选编译准备。
- 在 `README.md` 中,特别感谢 `ZlibBoost` 项目,并新增编译文档和参考手册的教程,同时将 `ccache` 和 `lld` 列为可选编译准备。

### 2025-04-10

- 修正了 `printInfo()` 函数中的注释错误,将文件日志级别更正为 `trace`,而非 `debug`。
- 添加了 `mono` 子命令的测试命令到 `test.sh` 脚本中。
6 changes: 3 additions & 3 deletions include/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#define APP_NAME "ZlibValidation"
#define APP_VERSION_MAJOR 1
#define APP_VERSION_MINOR 1
#define APP_VERSION_PATCH 0
#define APP_VERSION "1.1.0"
#define APP_VERSION_PATCH 1
#define APP_VERSION "1.1.1"
#define APP_AUTHOR "Song Zixuan"
#define APP_CONTACT "cedar@zju.edu.cn"
#define BUILD_TIMESTAMP "2025-04-07 12:01:52"
#define BUILD_TIMESTAMP "2025-04-10 09:46:49"
2 changes: 1 addition & 1 deletion src/LibFileOperations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* This function performs the following operations:
* 1. Creates a console sink for logging with level set to INFO
* 2. Creates a file sink for logging with level set to DEBUG, saving to [APP_NAME].log
* 2. Creates a file sink for logging with level set to TRACE, saving to [APP_NAME].log
* 3. Configures a logger with both sinks and sets it as the default logger
* 4. Outputs basic application information:
* - Version and build timestamp
Expand Down
5 changes: 3 additions & 2 deletions src/LibraryComparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,9 @@ void LibraryComparator::generateReport(const std::string &output_file) {
if (table[i][note_index].get_text() == "<") {
outlier_count++;
}
max_diff = std::max(max_diff, diff);
max_diff_percent = std::max(max_diff_percent, diff_percent);
// Change to absolute value for max diff
max_diff = std::max(max_diff, std::abs(diff));
max_diff_percent = std::max(max_diff_percent, std::abs(diff_percent));

} catch (const std::invalid_argument &e) {
spdlog::error("Could not convert value to double: {}", e.what());
Expand Down
30 changes: 29 additions & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ ninja
./zlibvalidation --help
./zlibvalidation --version

## mono sub command

cd ~/Projects/ZlibValidation/build
./zlibvalidation clear
./zlibvalidation -h
./zlibvalidation mono ~/examples/liberate_lv/LIBRARY/example.lib -s

## supercell sub command

cd ~/Projects/ZlibValidation/build
./zlibvalidation clear
./zlibvalidation -h
./zlibvalidation supercell ~/examples/liberate_lv/LIBRARY/example.lib -c 3

## verilog sub command

cd ~/Projects/ZlibValidation/build
Expand All @@ -22,4 +36,18 @@ cd ~/Projects/ZlibValidation/build
cd ~/Projects/ZlibValidation/build
./zlibvalidation clear
./zlibvalidation -h
./zlibvalidation spice ../pdk/tcbn65lpbc.lib -c 3 --cells FA1D0 INVD0
./zlibvalidation spice ../pdk/tcbn65lpbc.lib -c 3 --cells FA1D0 INVD0

## compare sub command

cd ~/Projects/ZlibValidation/build
./zlibvalidation clear
./zlibvalidation -h
./zlibvalidation compare --ref ../pdk/tcbn65lpbc.ski.lib --comp ../pdk/tcbn65lpbc.nldm.pt.lib

## func sub command

cd ~/Projects/ZlibValidation/build
./zlibvalidation clear
./zlibvalidation -h
./zlibvalidation func --ref ../pdk/tcbn65lpbc.lib --comp ../pdk/tcbn65lp.v --cells IAO21D0 CMPE42D1
Loading