Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 3de5830

Browse files
committed
Remove apio support
1 parent d2c8630 commit 3de5830

File tree

4 files changed

+14
-41
lines changed

4 files changed

+14
-41
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Yosys lint plugin for micro editor
22

3-
Plugin for checking the syntax of the **Verilog** language. Based on **yosys** or **apio yosys**.
3+
Plugin for checking the syntax of the **Verilog** language. Based on **yosys**.
4+
5+
Tested version: Micro 2.0.10; Yosys 2019.12.11
46

5-
First of all, it is checked whether yosys is installed, and only later apio yosys. That is, the priority is given to the native yosys.
67

78
## Installation
89

@@ -16,12 +17,6 @@ micro ~/.config/micro/settings.json
1617
"pluginrepos": ["https://raw.githubusercontent.com/MuratovAS/micro-yosyslint/main/repo.json"],
1718
~~~
1819

19-
You may need to set the right to `apioYosys.sh`.
20-
21-
~~~bash
22-
chmod 775 ~/.config/micro/plug/yosyslint/apioYosys.sh
23-
~~~
24-
2520
Installing the plugin in micro editor
2621

2722
~~~bash
@@ -30,5 +25,4 @@ micro -plugin install yosyslint
3025

3126
## Known bugs
3227

33-
- The plugin is currently checking for the existence of apio, but will not check if the yosys component in apio is installed
3428
- The plugin reports an ERROR in the code, but does not report a WARNING.

apioYosys.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

repo.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
[{
22
"Name": "yosyslint",
3-
"Description": "Plugin for checking the syntax of the Verilog language. Based on yosys or apio yosys.",
4-
"Tags": ["yosys","lint","verilog","apio"],
3+
"Description": "Plugin for checking the syntax of the Verilog language. Based on yosys.",
4+
"Tags": ["yosys","lint","verilog"],
55
"Website": "https://github.com/muratovas/micro-yosyslint",
66
"Versions": [
7+
{
8+
"Version": "0.0.2",
9+
"Url": "https://github.com/muratovas/micro-yosyslint/archive/v0.0.2.zip",
10+
"Require": {
11+
"micro": ">=2.0.0"
12+
}
13+
}
714
{
815
"Version": "0.0.1",
916
"Url": "https://github.com/muratovas/micro-yosyslint/archive/v0.0.1.zip",

yosyslint.lua

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,7 @@
1-
VERSION = "0.0.1"
1+
VERSION = "0.0.2"
22

3-
local os = import("os")
43
local micro = import("micro")
5-
local shell = import("micro/shell")
64

75
function init()
8-
local yosys_r = shell.ExecCommand("yosys", "-V")
9-
if yosys_r == "" then
10-
micro.Log("yosys - not found")
11-
else
12-
micro.Log("yosys - used to check syntax")
136
linter.makeLinter("verilog", "verilog", "yosys", {"-q" ,"%f"}, "%f:%l:.+: %m")
14-
return
15-
end
16-
17-
-- There is a problem, in "apio raw" you need to transmit
18-
-- all parameters with one row. The "Linter.makerInter" function
19-
-- cannot pass in the program parameters with one row.
20-
-- As a result, I had to create a bash script.
21-
local apio_r = shell.ExecCommand("apio", "raw", "yosys -V")
22-
if apio_r == "" then
23-
micro.Log("apio yosys - not found")
24-
else
25-
micro.Log("apio yosys - used to check syntax")
26-
local homePth = os.Getenv("HOME")
27-
linter.makeLinter("verilog", "verilog", homePth .. "/.config/micro/plug/yosyslint/apioYosys.sh", {"-q" ,"%f"}, "%f:%l:.+: %m")
28-
return
29-
end
30-
31-
end
32-
33-
7+
end

0 commit comments

Comments
 (0)