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
bef1c131
Commit
bef1c131
authored
Dec 14, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added debug print
parent
c9440b42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
dsp_ma_preadd.v
dsp/dsp_ma_preadd.v
+7
-0
dsp_ma_preadd_c.v
dsp/dsp_ma_preadd_c.v
+8
-0
No files found.
dsp/dsp_ma_preadd.v
View file @
bef1c131
...
@@ -79,6 +79,9 @@ module dsp_ma_preadd #(
...
@@ -79,6 +79,9 @@ module dsp_ma_preadd #(
1'b0
,
1'b0
,
2'b01
,
2'b01
,
2'b01
};
2'b01
};
initial
begin
$
display
(
"dsp_ma_preadd, using DSP48E1"
)
;
end
DSP48E1
#(
DSP48E1
#(
.
ACASCREG
(
1
)
,
.
ACASCREG
(
1
)
,
...
@@ -164,6 +167,10 @@ module dsp_ma_preadd #(
...
@@ -164,6 +167,10 @@ module dsp_ma_preadd #(
)
;
)
;
`else
`else
initial
begin
$
display
(
"dsp_ma_preadd, not using DSP48E1"
)
;
end
// Will try to make it infer DSP48e1
// Will try to make it infer DSP48e1
reg
signed
[
B_WIDTH
-
1
:
0
]
b1_reg
;
reg
signed
[
B_WIDTH
-
1
:
0
]
b1_reg
;
reg
signed
[
B_WIDTH
-
1
:
0
]
b2_reg
;
reg
signed
[
B_WIDTH
-
1
:
0
]
b2_reg
;
...
...
dsp/dsp_ma_preadd_c.v
View file @
bef1c131
...
@@ -69,6 +69,10 @@ module dsp_ma_preadd_c #(
...
@@ -69,6 +69,10 @@ module dsp_ma_preadd_c #(
output
signed
[
P_WIDTH
-
1
:
0
]
pout
output
signed
[
P_WIDTH
-
1
:
0
]
pout
)
;
)
;
`ifdef
INSTANTIATE_DSP48E1
`ifdef
INSTANTIATE_DSP48E1
initial
begin
$
display
(
"dsp_ma_preadd_c, using DSP48E1"
)
;
end
wire
[
4
:
0
]
inmode
=
{~
selb
,
wire
[
4
:
0
]
inmode
=
{~
selb
,
sub_a
,
sub_a
,
en_d
,
en_d
,
...
@@ -167,6 +171,10 @@ module dsp_ma_preadd_c #(
...
@@ -167,6 +171,10 @@ module dsp_ma_preadd_c #(
)
;
)
;
`else
`else
initial
begin
$
display
(
"dsp_ma_preadd_c, not using DSP48E1"
)
;
end
// Will try to make it infer DSP48e1
// Will try to make it infer DSP48e1
reg
signed
[
B_WIDTH
-
1
:
0
]
b1_reg
;
reg
signed
[
B_WIDTH
-
1
:
0
]
b1_reg
;
reg
signed
[
B_WIDTH
-
1
:
0
]
b2_reg
;
reg
signed
[
B_WIDTH
-
1
:
0
]
b2_reg
;
...
...
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