Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
412a3a33
Commit
412a3a33
authored
Dec 23, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented parameter REGB = 2 in infer mode
parent
2b9a01fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
dsp_ma_preadd.v
dsp/dsp_ma_preadd.v
+21
-1
No files found.
dsp/dsp_ma_preadd.v
View file @
412a3a33
...
@@ -79,7 +79,7 @@ module dsp_ma_preadd #(
...
@@ -79,7 +79,7 @@ module dsp_ma_preadd #(
2'b01
,
2'b01
,
2'b01
};
2'b01
};
initial
begin
initial
begin
$
display
(
"dsp_ma_preadd, using DSP48E1.
FIXME: implement BREG=2 for undef INSTANTIATE_DSP48E1
"
)
;
$
display
(
"dsp_ma_preadd, using DSP48E1."
)
;
end
end
DSP48E1
#(
DSP48E1
#(
...
@@ -203,11 +203,31 @@ module dsp_ma_preadd #(
...
@@ -203,11 +203,31 @@ module dsp_ma_preadd #(
assign
m_reg_pm
=
neg_m_r
?
-
m_reg
:
m_reg
;
assign
m_reg_pm
=
neg_m_r
?
-
m_reg
:
m_reg
;
assign
p_reg_cond
=
accum_r
?
p_reg
:
0
;
assign
p_reg_cond
=
accum_r
?
p_reg
:
0
;
generate
case
(
BREG
)
1
:
begin
always
@
(
posedge
clk
)
begin
if
(
rst
)
b2_reg
<=
18'b0
;
else
if
(
ceb2
)
b2_reg
<=
bin
;
end
end
2
:
begin
always
@
(
posedge
clk
)
begin
if
(
rst
)
b2_reg
<=
18'b0
;
else
if
(
ceb2
)
b2_reg
<=
b1_reg
;
end
end
endcase
endgenerate
always
@
(
posedge
clk
)
begin
always
@
(
posedge
clk
)
begin
if
(
rst
)
b1_reg
<=
0
;
if
(
rst
)
b1_reg
<=
0
;
else
if
(
ceb1
)
b1_reg
<=
bin
;
else
if
(
ceb1
)
b1_reg
<=
bin
;
if
(
rst
)
b2_reg
<=
0
;
if
(
rst
)
b2_reg
<=
0
;
else
if
(
ceb2
)
b2_reg
<=
bin
;
else
if
(
ceb2
)
b2_reg
<=
bin
;
...
...
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