Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CME433_Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Thien Nam Nguyen (nln157)
CME433_Project
Commits
4c043b9f
Commit
4c043b9f
authored
2 years ago
by
Shrawan Parmar
Browse files
Options
Downloads
Plain Diff
completed approx model with each %
parents
e3a5aabe
71cbc477
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cme433_lrtestbench-main/src/mult16via8.sv
+4
-2
4 additions, 2 deletions
cme433_lrtestbench-main/src/mult16via8.sv
cme433_lrtestbench-main/src/process_engine.sv
+12
-12
12 additions, 12 deletions
cme433_lrtestbench-main/src/process_engine.sv
with
16 additions
and
14 deletions
cme433_lrtestbench-main/src/mult16via8.sv
+
4
−
2
View file @
4c043b9f
...
...
@@ -9,7 +9,7 @@ module mult16bvia8bit (
///////////////////////////// Instantiate your multiplier here ///////////////////////////////////////
//exact_mult mult (
// our_mult mult (
approx_mult
mult
(
.
i_a
(
inA
[
0
]),
.
i_b
(
inB
[
0
]),
...
...
@@ -21,7 +21,9 @@ module mult16bvia8bit (
generate
;
for
(
i
=
1
;
i
<
4
;
i
=
i
+
1
)
begin
:
base
exact_mult
mult
(
exact_mult
mult
(
.
i_a
(
inA
[
i
]),
.
i_b
(
inB
[
i
]),
.
o_z
(
ouP
[
i
])
...
...
This diff is collapsed.
Click to expand it.
cme433_lrtestbench-main/src/process_engine.sv
+
12
−
12
View file @
4c043b9f
module
process_engine
(
input
logic
signed
[
7
:
0
]
i_a
[
8
:
0
],
input
logic
signed
[
7
:
0
]
i_b
[
8
:
0
],
input
logic
signed
[
15
:
0
]
i_a
[
8
:
0
],
input
logic
signed
[
15
:
0
]
i_b
[
8
:
0
],
output
logic
signed
[
31
:
0
]
o_z
);
reg
[
1
5
:
0
]
product_result
[
8
:
0
];
reg
[
3
1
:
0
]
product_result
[
8
:
0
];
///////////////////////////// Instantiate 9 multipliers ///////////////////////////////////////
approx_mul
t
mult0
(
.
i_a
(
i_a
[
0
]),
.
i_b
(
i_b
[
0
]),.
o_z
(
product_result
[
0
]));
approx_mul
t
mult1
(
.
i_a
(
i_a
[
1
]),
.
i_b
(
i_b
[
1
]),.
o_z
(
product_result
[
1
]));
approx_mul
t
mult2
(
.
i_a
(
i_a
[
2
]),
.
i_b
(
i_b
[
2
]),.
o_z
(
product_result
[
2
]));
approx_mul
t
mult3
(
.
i_a
(
i_a
[
3
]),
.
i_b
(
i_b
[
3
]),.
o_z
(
product_result
[
3
]));
approx_mul
t
mult4
(
.
i_a
(
i_a
[
4
]),
.
i_b
(
i_b
[
4
]),.
o_z
(
product_result
[
4
]));
approx_mul
t
mult5
(
.
i_a
(
i_a
[
5
]),
.
i_b
(
i_b
[
5
]),.
o_z
(
product_result
[
5
]));
approx_mul
t
mult6
(
.
i_a
(
i_a
[
6
]),
.
i_b
(
i_b
[
6
]),.
o_z
(
product_result
[
6
]));
approx_mul
t
mult7
(
.
i_a
(
i_a
[
7
]),
.
i_b
(
i_b
[
7
]),.
o_z
(
product_result
[
7
]));
approx_mul
t
mult8
(
.
i_a
(
i_a
[
8
]),
.
i_b
(
i_b
[
8
]),.
o_z
(
product_result
[
8
]));
mult16bvia8bi
t
mult0
(
.
i_a
(
i_a
[
0
]),
.
i_b
(
i_b
[
0
]),.
o_z
(
product_result
[
0
]));
mult16bvia8bi
t
mult1
(
.
i_a
(
i_a
[
1
]),
.
i_b
(
i_b
[
1
]),.
o_z
(
product_result
[
1
]));
mult16bvia8bi
t
mult2
(
.
i_a
(
i_a
[
2
]),
.
i_b
(
i_b
[
2
]),.
o_z
(
product_result
[
2
]));
mult16bvia8bi
t
mult3
(
.
i_a
(
i_a
[
3
]),
.
i_b
(
i_b
[
3
]),.
o_z
(
product_result
[
3
]));
mult16bvia8bi
t
mult4
(
.
i_a
(
i_a
[
4
]),
.
i_b
(
i_b
[
4
]),.
o_z
(
product_result
[
4
]));
mult16bvia8bi
t
mult5
(
.
i_a
(
i_a
[
5
]),
.
i_b
(
i_b
[
5
]),.
o_z
(
product_result
[
5
]));
mult16bvia8bi
t
mult6
(
.
i_a
(
i_a
[
6
]),
.
i_b
(
i_b
[
6
]),.
o_z
(
product_result
[
6
]));
mult16bvia8bi
t
mult7
(
.
i_a
(
i_a
[
7
]),
.
i_b
(
i_b
[
7
]),.
o_z
(
product_result
[
7
]));
mult16bvia8bi
t
mult8
(
.
i_a
(
i_a
[
8
]),
.
i_b
(
i_b
[
8
]),.
o_z
(
product_result
[
8
]));
///////////////////////////// add all results from 9 multipliers ///////////////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment