Skip to content

Commit

Permalink
waveform added & compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
joggyGeorge committed Mar 1, 2021
1 parent 5dde83f commit ab5b4ce
Show file tree
Hide file tree
Showing 17 changed files with 61,787 additions and 91 deletions.
295 changes: 295 additions & 0 deletions README.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,295 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>&#x6784;&#x5EFA;&#x72B6;&#x6001;</title>
<style>
</style>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/markdown.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/highlight.css">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
font-size: 14px;
line-height: 1.6;
}
</style>
<style>
.task-list-item { list-style-type: none; } .task-list-item-checkbox { margin-left: -20px; vertical-align: middle; }
</style>



</head>
<body class="vscode-body vscode-light">
<h1 align="center">
<img src="file:///h:\bishe\Wonton\Imgs\chip.svg" width="128"/>
</h1>
<h2 align="center">
<img src="file:///h:\bishe\Wonton\Imgs\title.svg" />
</h2>
<br>
<div align="center">
<p>多语言文档:<a href="./README.en-US.html">English</a>, <a href="./README.html">简体中文</a></p>
<p><img src="https://img.shields.io/github/license/WangyuHello/Wonton?label=%E8%AE%B8%E5%8F%AF%E8%AF%81&amp;style=flat-square" alt="GitHub">
<img src="https://img.shields.io/badge/%E8%AF%AD%E8%A8%80-C%23-orange?style=flat-square" alt="csharp">
<img src="https://img.shields.io/badge/%E8%AF%AD%E8%A8%80-JavaScript-yellow?style=flat-square" alt="js">
<img src="https://img.shields.io/badge/%E5%B9%B3%E5%8F%B0-Windows%20%7C%20macOS%20%7C%20Linux-blue?style=flat-square" alt="platform">
<img src="https://img.shields.io/github/v/release/WangyuHello/Wonton?label=%E5%8F%91%E5%B8%83%E7%89%88%E6%9C%AC&amp;style=flat-square" alt="GitHub release (latest SemVer)">
<img src="https://img.shields.io/github/downloads/WangyuHello/Wonton/total?label=%E4%B8%8B%E8%BD%BD%E9%87%8F&amp;style=flat-square" alt="GitHub All Releases"></p>
</div>
<table>
<thead>
<tr>
<th style="text-align:center">Windows</th>
<th style="text-align:center">macOS</th>
<th style="text-align:center">Linux</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center"><img src="file:///h:\bishe\Wonton\Imgs\win.png" alt="win "></td>
<td style="text-align:center"><img src="file:///h:\bishe\Wonton\Imgs\mac.png" alt="mac "></td>
<td style="text-align:center"><img src="file:///h:\bishe\Wonton\Imgs\ubuntu.png" alt="lnx "></td>
</tr>
</tbody>
</table>
<h2 id="构建状态">构建状态</h2>
<table>
<thead>
<tr>
<th>构建平台</th>
<th>Windows</th>
<th>macOS</th>
<th>Linux</th>
</tr>
</thead>
<tbody>
<tr>
<td>Travis CI</td>
<td><a href="https://www.travis-ci.org/WangyuHello/Wonton"><img src="https://www.travis-ci.org/WangyuHello/Wonton.svg?branch=master" alt="Build Status"></a></td>
<td><a href="https://www.travis-ci.org/WangyuHello/Wonton"><img src="https://www.travis-ci.org/WangyuHello/Wonton.svg?branch=master" alt="Build Status"></a></td>
<td><a href="https://www.travis-ci.org/WangyuHello/Wonton"><img src="https://www.travis-ci.org/WangyuHello/Wonton.svg?branch=master" alt="Build Status"></a></td>
</tr>
<tr>
<td>Azure Pipelines</td>
<td><a href="https://dev.azure.com/FudanUniversity/Wonton/_build/latest?definitionId=1&amp;branchName=master"><img src="https://dev.azure.com/FudanUniversity/Wonton/_apis/build/status/WangyuHello.Wonton?branchName=master&amp;jobName=Windows" alt="Build Status"></a></td>
<td><a href="https://dev.azure.com/FudanUniversity/Wonton/_build/latest?definitionId=1&amp;branchName=master"><img src="https://dev.azure.com/FudanUniversity/Wonton/_apis/build/status/WangyuHello.Wonton?branchName=master&amp;jobName=macOS" alt="Build Status"></a></td>
<td><a href="https://dev.azure.com/FudanUniversity/Wonton/_build/latest?definitionId=1&amp;branchName=master"><img src="https://dev.azure.com/FudanUniversity/Wonton/_apis/build/status/WangyuHello.Wonton?branchName=master&amp;jobName=Linux20" alt="Build Status"></a></td>
</tr>
</tbody>
</table>
<h1 id="安装">安装</h1>
<h2 id="从-github-release-下载">从 Github Release 下载</h2>
<p>你可以为以下任意一个平台下载 Wonton 安装包</p>
<table>
<thead>
<tr>
<th>操作系统</th>
<th>处理器</th>
<th>安装包下载</th>
<th>包下载</th>
</tr>
</thead>
<tbody>
<tr>
<td>Windows</td>
<td>x64</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-win-setup.exe">.exe</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-win-x64.7z">.7z</a></td>
</tr>
<tr>
<td>Windows (框架依赖)</td>
<td>x64</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-win-fxdependent-setup.exe">.exe</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-win-x64-fxdependent.7z">.7z</a></td>
</tr>
<tr>
<td>macOS 10.15</td>
<td>x64</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-mac-10.15.dmg">.dmg</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-mac-10.15.7z">.7z</a></td>
</tr>
<tr>
<td>macOS 10.14</td>
<td>x64</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-mac-10.14.dmg">.dmg</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-mac-10.14.7z">.7z</a></td>
</tr>
<tr>
<td>Ubuntu 20.04</td>
<td>x64</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-amd64-ubuntu-20.04.deb">.deb</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-amd64-ubuntu-20.04.7z">.7z</a></td>
</tr>
<tr>
<td>Ubuntu 18.04</td>
<td>x64</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-amd64-ubuntu-18.04.deb">.deb</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-amd64-ubuntu-18.04.7z">.7z</a></td>
</tr>
<tr>
<td>Ubuntu 16.04</td>
<td>x64</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-amd64-ubuntu-16.04.deb">.deb</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-amd64-ubuntu-16.04.7z">.7z</a></td>
</tr>
<tr>
<td>Ubuntu 18.04</td>
<td>armv7</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-armv7l.deb">.deb</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-armv7l.7z">.7z</a></td>
</tr>
<tr>
<td>Ubuntu 18.04</td>
<td>arm64</td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-arm64.deb">.deb</a></td>
<td><a href="https://github.com/WangyuHello/Wonton/releases/download/v1.1.0/Wonton-1.1.0-linux-arm64.7z">.7z</a></td>
</tr>
</tbody>
</table>
<h2 id="从包管理器安装">从包管理器安装</h2>
<ul>
<li>
<p>Windows</p>
<p>如果安装有 Chocolatey 包管理器</p>
<pre><code class="language-bash"><div>choco install wonton -y --version=1.1.0
</div></code></pre>
</li>
<li>
<p>macOS / Linux</p>
<p>暂不支持</p>
</li>
</ul>
<h1 id="架构">架构</h1>
<div align="center">
<img src="file:///h:\bishe\Wonton\Imgs\Wonton.svg" />
</div>
<h1 id="使用">使用</h1>
<h2 id="发现-bug-请提交-issue"><a href="https://github.com/WangyuHello/Wonton/issues">发现 Bug 请提交 Issue</a></h2>
<h2 id="使用文档"><a href="https://github.com/WangyuHello/Wonton/wiki/%E8%BD%AF%E4%BB%B6%E4%BD%BF%E7%94%A8%E7%AE%80%E4%BB%8B">使用文档</a></h2>
<h2 id="添加新的器件"><a href="https://github.com/WangyuHello/Wonton/wiki/%E5%A6%82%E4%BD%95%E6%B7%BB%E5%8A%A0%E6%96%B0%E7%9A%84%E5%99%A8%E4%BB%B6">添加新的器件</a></h2>
<h1 id="编译指南">编译指南</h1>
<h2 id="依赖软件">依赖软件</h2>
<ul>
<li>
<p>NodeJS : <a href="https://nodejs.org/en/">https://nodejs.org/en/</a></p>
<p>LTS 和 Current 版本均可</p>
</li>
<li>
<p>.NET Core SDK: <a href="https://dotnet.microsoft.com/download">https://dotnet.microsoft.com/download</a></p>
<p>需 &gt;= 3.1 版本,请勿安装 Runtime 版本</p>
</li>
</ul>
<h2 id="编译步骤">编译步骤</h2>
<ol>
<li>
<p>克隆源代码仓库</p>
<pre><code class="language-bash"><div>git <span class="hljs-built_in">clone</span> https://github.com/WangyuHello/Wonton.git
</div></code></pre>
</li>
<li>
<p>开始编译,在 <strong>Wonton</strong> 目录下运行</p>
<blockquote>
<p>如果未安装 NodeJS 或者 .NET Core SDK,以下脚本将自动安装</p>
</blockquote>
<ul>
<li>
<p>Windows</p>
<ul>
<li>使用 <strong>PowerShell</strong> 运行</li>
</ul>
<pre><code class="language-powershell"><div>.\build.ps1 <span class="hljs-literal">-useMagic</span>
</div></code></pre>
<ul>
<li>或者使用<strong>命令提示符</strong>运行</li>
</ul>
<pre><code class="language-cmd"><div>.\build.<span class="hljs-built_in">cmd</span> -useMagic
</div></code></pre>
<ul>
<li>也可双击 <strong>build.cmd</strong> 文件</li>
</ul>
</li>
<li>
<p>macOS、Linux</p>
<pre><code class="language-bash"><div>./build.bash -useMagic
</div></code></pre>
</li>
</ul>
<blockquote>
<p>如果是海外用户,请去除 -useMagic 选项</p>
</blockquote>
</li>
<li>
<p>编译后的文件在 <strong>Build</strong> 目录下</p>
</li>
</ol>
<h1 id="驱动编译指南">驱动编译指南</h1>
<h2 id="依赖软件-1">依赖软件</h2>
<h3 id="windows">Windows</h3>
<ul>
<li>Visual Studio 2019 (MSVC 142)</li>
</ul>
<h3 id="macos">macOS</h3>
<ul>
<li>Xcode</li>
<li>cmake</li>
<li>autoconf</li>
<li>automake</li>
<li>libtool</li>
<li>m4</li>
</ul>
<h3 id="linux">Linux</h3>
<ul>
<li>gcc</li>
<li>cmake</li>
<li>autoconf</li>
<li>automake</li>
<li>libtool</li>
<li>m4</li>
</ul>
<h2 id="编译步骤-1">编译步骤</h2>
<ol>
<li>
<p><strong>NativeDeps.zip</strong> 压缩包复制到 <strong>Wonton</strong> 目录下,其余步骤同<a href="##%E7%BC%96%E8%AF%91%E6%AD%A5%E9%AA%A4">编译步骤</a></p>
<p><em>驱动代码未开源</em></p>
</li>
<li>
<p>如果想要撤销驱动编译,请删除 <strong>NativeDeps.zip</strong> 、VLFDDriver、SharpVLFD目录。</p>
</li>
</ol>
<h1 id="问题解决">问题解决</h1>
<h4 id="electron无法下载">Electron无法下载</h4>
<ol>
<li>
<p>删除 <a href="http://Wonton.CrossUI.Web">Wonton.CrossUI.Web</a>\ClientApp\node_modules\electron 目录</p>
</li>
<li>
<p>找到<strong>Electron缓存目录</strong>,如果没有可自行创建。</p>
<p>Windows: <code>%LOCALAPPDATA%\electron\Cache</code> <br>
macOS: <code>~/Library/Caches/electron/</code> <br>
Linux: <code>~/.cache/electron/</code></p>
</li>
<li>
<p>从淘宝镜像下载Electron包</p>
<p>Windows: <a href="https://npm.taobao.org/mirrors/electron/10.1.4/electron-v10.1.4-win32-x64.zip">https://npm.taobao.org/mirrors/electron/10.1.4/electron-v10.1.4-win32-x64.zip</a> <br>
macOS: <a href="https://npm.taobao.org/mirrors/electron/10.1.4/electron-v10.1.4-darwin-x64.zip">https://npm.taobao.org/mirrors/electron/10.1.4/electron-v10.1.4-darwin-x64.zip</a> <br>
Linux: <a href="https://npm.taobao.org/mirrors/electron/10.1.4/electron-v10.1.4-linux-x64.zip">https://npm.taobao.org/mirrors/electron/10.1.4/electron-v10.1.4-linux-x64.zip</a></p>
</li>
<li>
<p>将上述下载的zip包存放在Electron缓存目录中即可</p>
</li>
</ol>
<h1 id="贡献-">贡献 ✨</h1>
<table>
<tr>
<td align="center"><a href="https://github.com/WangyuHello"><img src="https://avatars2.githubusercontent.com/u/16507233?v=4" width="100px;" alt="WangyuHello" style="border-radius:50%;"/><br /><sub><b>WangyuHello</b></sub></a></td>
<td align="center"><a href="https://github.com/GeraltShi"><img src="https://avatars0.githubusercontent.com/u/25215492?v=4" width="100px;" alt="GeraltShi" style="border-radius:50%;"/><br /><sub><b>GeraltShi</b></sub></a></td>
<td align="center"><a href="https://github.com/ImgBotApp"><img src="https://avatars1.githubusercontent.com/u/31427850?v=4" width="100px;" alt="ImgBotApp" style="border-radius:50%;"/><br /><sub><b>ImgBotApp</b></sub></a></td>
</tr>
</table>
<!-- https://api.github.com/repos/WangyuHello/Wonton/contributors?page=1&per_page=100 -->

</body>
</html>
3 changes: 0 additions & 3 deletions Wonton.Common/FPGABoard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,17 @@ public bool IoOpen()
var msg = VLFDInterop.VLFD_GetLastErrorMsg(NOW_USE_BOARD);
throw new FPGAException(msg);
}

return true;
}

public bool WriteReadData()
{
var r = VLFDInterop.VLFD_IO_WriteReadData(NOW_USE_BOARD, WriteBuffer.Span, ReadBuffer.Span);

if (r == false)
{
var msg = VLFDInterop.VLFD_GetLastErrorMsg(NOW_USE_BOARD);
throw new FPGAException(msg);
}

return true;
}

Expand Down
2 changes: 2 additions & 0 deletions Wonton.CrossUI.Web.HostApp/Wonton.CrossUI.Web.HostApp.njsproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">16.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
<StartWebBrowser>True</StartWebBrowser>
<SaveNodeJsSettingsInProjectFile>True</SaveNodeJsSettingsInProjectFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
<PropertyGroup Condition="'$(Configuration)' == 'Release'" />
Expand Down
Loading

0 comments on commit ab5b4ce

Please sign in to comment.