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
d3210b8a
Commit
d3210b8a
authored
Jul 24, 2019
by
SergeyDegtyar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failed tests
parent
4c8a3c38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
19 deletions
+21
-19
simple/Makefile
+1
-1
simple/hierarchy/top.v
+20
-18
No files found.
simple/Makefile
View file @
d3210b8a
...
...
@@ -152,7 +152,7 @@ $(eval $(call template,tribuf_logic,tribuf_logic_top tribuf_merge_logic_top))
#expose
$(eval
$(call
template,expose,expose_cut
expose_input
expose_evert
expose_sep
expose_shared
expose_dff
expose_evert_dff
expose_evert_shared
expose_evert_dff_shared))
$(eval
$(call
template,expose_dff,expose_cut
expose_input
expose_evert
expose_sep
expose_shared
expose_dff
expose_evert_dff
expose_evert_shared
expose_evert_dff_shared))
$(eval
$(call
template,expose_ffs,expose_cut
expose_input
expose_evert
expose_sep
expose_shared
expose_dff
expose_evert_
dff
expose_evert_
shared
expose_evert_dff_shared))
$(eval
$(call
template,expose_ffs,expose_cut
expose_input
expose_evert
expose_sep
expose_shared
expose_dff
expose_evert_shared
expose_evert_dff_shared))
#opt_demorgan
$(eval
$(call
template,opt_demorgan,opt_demorgan))
...
...
simple/hierarchy/top.v
View file @
d3210b8a
...
...
@@ -15,9 +15,9 @@ module adff
end
always
@
(
posedge
clk
,
posedge
clr
)
if
(
clr
)
`ifndef
BUG
`ifndef
BUG
q
<=
1'b0
;
`else
`else
q
<=
d
;
`endif
else
...
...
@@ -32,9 +32,9 @@ module adffn
end
always
@
(
posedge
clk
,
negedge
clr
)
if
(
!
clr
)
`ifndef
BUG
`ifndef
BUG
q
<=
1'b0
;
`else
`else
q
<=
d
;
`endif
else
...
...
@@ -49,9 +49,9 @@ module dffe
end
always
@
(
posedge
clk
)
if
(
en
)
`ifndef
BUG
`ifndef
BUG
q
<=
d
;
`else
`else
q
<=
1'b0
;
`endif
endmodule
...
...
@@ -63,9 +63,9 @@ module dffsr
end
always
@
(
posedge
clk
,
posedge
pre
,
posedge
clr
)
if
(
clr
)
`ifndef
BUG
`ifndef
BUG
q
<=
1'b0
;
`else
`else
q
<=
d
;
`endif
else
if
(
pre
)
...
...
@@ -78,18 +78,18 @@ module ndffnsnr
(
d
,
clk
,
pre
,
clr
,
q
)
;
parameter
s
=
2
;
parameter
l
=
1
;
input
[
s
-
1
:
l
]
d
;
input
clk
,
pre
,
clr
;
input
[
s
-
1
:
l
]
d
;
input
clk
,
pre
,
clr
;
output
reg
[
s
-
1
:
l
]
q
;
initial
begin
q
=
2'b11
;
end
always
@
(
negedge
clk
,
negedge
pre
,
negedge
clr
)
if
(
!
clr
)
`ifndef
BUG
`ifndef
BUG
q
<=
2'b00
;
`else
`else
q
<=
d
;
`endif
else
if
(
!
pre
)
...
...
@@ -108,6 +108,8 @@ output b,b1,b2,b3,b4
wire
a1
,
b11
;
parameter
x
=
0
;
dffsr
u_dffsr
(
.
clk
(
clk
)
,
.
clr
(
clr
)
,
...
...
@@ -115,7 +117,7 @@ dffsr u_dffsr (
.
d
(
a
)
,
.
q
(
b
)
)
;
ndffnsnr
#(
4
)
u_ndffnsnr
(
.
clk
(
clk
)
,
.
clr
(
clr
)
,
...
...
@@ -123,23 +125,23 @@ ndffnsnr #(4) u_ndffnsnr (
.
d
(
{
a
,
a1
}
)
,
.
q
(
{
b1
,
b11
}
)
)
;
defparam
u_ndffnsnr
.
l
=
0
;
adff
u_adff
(
.
clk
(
clk
)
,
.
clr
(
clr
)
,
.
d
(
a
)
,
.
q
(
b2
)
)
;
adffn
u_adffn
(
.
clk
(
clk
)
,
.
clr
(
clr
)
,
.
d
(
a
)
,
.
q
(
b3
)
)
;
dffe
u_dffe
(
.
clk
(
clk
)
,
.
en
(
clr
)
,
...
...
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