From eea03f5bc88941ebf673823a4cc158468f52d4b3 Mon Sep 17 00:00:00 2001 From: SikongJueluo Date: Tue, 13 May 2025 18:14:57 +0800 Subject: [PATCH] feat: upload and download bitstream from the component of project view --- server/src/Controllers.cs | 20 - src/App.vue | 11 +- src/components/CollapsibleSection.vue | 116 +- src/components/Navbar.vue | 11 - src/components/PropertyEditor.vue | 202 +- src/components/PropertyPanel.vue | 352 +- src/components/diagramManager.ts | 3 + src/components/equipments/ETH.vue | 54 +- src/components/equipments/MotherBoard.vue | 128 +- .../templates/PG2L100H_Pango100pro.json | 4118 ++++++++++++++--- src/router/index.ts | 2 - src/views/JtagTest.vue | 45 - src/views/ProjectView.vue | 537 ++- src/views/TestView.vue | 4 +- tsconfig.json | 5 +- 15 files changed, 4243 insertions(+), 1365 deletions(-) delete mode 100644 src/views/JtagTest.vue diff --git a/server/src/Controllers.cs b/server/src/Controllers.cs index da9a5d9..66cb836 100644 --- a/server/src/Controllers.cs +++ b/server/src/Controllers.cs @@ -192,26 +192,6 @@ public class JtagController : ControllerBase return "This is Jtag Controller"; } - /// - /// 执行一个Jtag命令 - /// - /// 设备地址 - /// 设备端口 - /// 16进制设备目的地址(Jtag) - /// 16进制命令 - [HttpPost("RunCommand")] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async ValueTask RunCommand(string address, int port, string hexDevAddr, string hexCmd) - { - var jtagCtrl = new JtagClient.Jtag(address, port); - var ret = await jtagCtrl.WriteFIFO(Convert.ToUInt32(hexDevAddr, 16), Convert.ToUInt32(hexCmd, 16)); - - if (ret.IsSuccessful) { return TypedResults.Ok(ret.Value); } - else { return TypedResults.InternalServerError(ret.Error); } - } - - /// /// 获取Jtag ID Code /// diff --git a/src/App.vue b/src/App.vue index ff979bf..a887650 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,10 @@