-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:anikau31/systemc-clang
- Loading branch information
Showing
8 changed files
with
193 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lark-parser==0.7.8 | ||
pytest==5.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
[ | ||
(hModule sreg_0) | ||
[ | ||
(hPortin clk) | ||
[ | ||
(hType sc_in) | ||
(hType _Bool) | ||
] | ||
(hPortin reset) | ||
[ | ||
(hType sc_in) | ||
(hType _Bool) | ||
] | ||
] | ||
[ | ||
[ | ||
(hProcess mc_io) | ||
[ | ||
] | ||
[ | ||
(hCStmt ) | ||
(hLiteral m_port) | ||
(hLiteral s_port) | ||
(hLiteral s_port) | ||
] | ||
] | ||
] | ||
] | ||
[ | ||
(hModule sreg_1) | ||
[ | ||
(hPortin clk) | ||
[ | ||
(hType sc_in) | ||
(hType _Bool) | ||
] | ||
(hPortin reset) | ||
[ | ||
(hType sc_in) | ||
(hType _Bool) | ||
] | ||
] | ||
[ | ||
[ | ||
(hProcess mc_io) | ||
[ | ||
] | ||
[ | ||
(hCStmt ) | ||
(hLiteral m_port) | ||
(hLiteral s_port) | ||
(hLiteral s_port) | ||
] | ||
] | ||
] | ||
] | ||
[ | ||
(hModule sreg_2) | ||
[ | ||
(hPortin clk) | ||
[ | ||
(hType sc_in) | ||
(hType _Bool) | ||
] | ||
(hPortin reset) | ||
[ | ||
(hType sc_in) | ||
(hType _Bool) | ||
] | ||
] | ||
[ | ||
[ | ||
(hProcess mc_io) | ||
[ | ||
] | ||
[ | ||
(hCStmt ) | ||
(hLiteral m_port) | ||
(hLiteral s_port) | ||
(hLiteral s_port) | ||
] | ||
] | ||
] | ||
] | ||
[ | ||
(hModule test_0) | ||
[ | ||
(hPortin clk) | ||
[ | ||
(hType sc_in) | ||
(hType _Bool) | ||
] | ||
] | ||
[ | ||
[ | ||
(hProcess mc_test) | ||
[ | ||
] | ||
[ | ||
(hCStmt ) | ||
] | ||
] | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os | ||
import sys | ||
import pytest | ||
from llnl import run_verilog_matched_test, run_sexp_matched_test | ||
|
||
@pytest.mark.xfail(reason="the golden standard now is incorrect") | ||
def test_sreg_sexp(args=None): | ||
assert run_sexp_matched_test('sreg', args), "sreg sexp should match golden standard" | ||
|
||
@pytest.mark.skip(reason="no golden standard available for now") | ||
def test_sreg_verilog(args=None): | ||
assert run_verilog_matched_test('sreg', args), "sreg verilog should match golden standard" | ||
|
||
if __name__ == '__main__': | ||
test_sreg_verilog(args) | ||
test_sreg_sexp(args) |