Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yosys-tests
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yosys-tests
Commits
4d0182cb
Commit
4d0182cb
authored
Sep 16, 2019
by
SergeyDegtyar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failed tests
parent
897d1f1d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
architecture/ice40_wrapcarry/testbench.v
+3
-5
architecture/ice40_wrapcarry/top.v
+0
-1
frontends/scripts/read_aiger_map.ys
+9
-0
No files found.
architecture/ice40_wrapcarry/testbench.v
View file @
4d0182cb
...
@@ -24,19 +24,17 @@ module testbench;
...
@@ -24,19 +24,17 @@ module testbench;
)
;
)
;
//assign poutA = in[3:0] % in[7:4];
assign
poutB
=
in
[
3
:
0
]
/
in
[
7
:
4
]
;
assign
poutB
=
in
[
3
:
0
]
/
in
[
7
:
4
]
;
//check_comb mod_test(outA, poutA);
check_comb
div_test
(
in
[
7
:
4
]
,
outB
,
poutB
)
;
check_comb
div_test
(
outB
,
poutB
)
;
assert_comb
div2_test
(
outB
[
2
]
,
poutB
[
2
])
;
endmodule
endmodule
module
check_comb
(
input
[
3
:
0
]
test
,
input
[
3
:
0
]
pat
)
;
module
check_comb
(
input
[
3
:
0
]
div
,
input
[
3
:
0
]
test
,
input
[
3
:
0
]
pat
)
;
always
@*
always
@*
begin
begin
#
1
;
#
1
;
if
(
div
!=
4'b0000
)
if
(
test
!==
pat
)
if
(
test
!==
pat
)
begin
begin
$
display
(
"ERROR: ASSERTION FAILED in %m:"
,
$
time
,
" "
,
test
,
" "
,
pat
)
;
$
display
(
"ERROR: ASSERTION FAILED in %m:"
,
$
time
,
" "
,
test
,
" "
,
pat
)
;
...
...
architecture/ice40_wrapcarry/top.v
View file @
4d0182cb
...
@@ -7,7 +7,6 @@ module top
...
@@ -7,7 +7,6 @@ module top
output
[
3
:
0
]
B
output
[
3
:
0
]
B
)
;
)
;
//assign A = x % y;
assign
B
=
x
/
y
;
assign
B
=
x
/
y
;
endmodule
endmodule
frontends/scripts/read_aiger_map.ys
0 → 100644
View file @
4d0182cb
read_verilog -sv ../top.v
aigmap
write_aiger aiger.aiger
design -reset
read_aiger -map aig.map aiger.aiger
design -reset
read_verilog -sv ../top.v
synth -top top
write_verilog synth.v
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment