Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
INT_my_epic_calculator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Snijder, T. (Taya, Student M-EMSYS)
INT_my_epic_calculator
Merge requests
!13
Taya branch
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Taya branch
taya_branch
into
main
Overview
0
Commits
3
Pipelines
0
Changes
8
Merged
Snijder, T. (Taya, Student M-EMSYS)
requested to merge
taya_branch
into
main
4 months ago
Overview
0
Commits
3
Pipelines
0
Changes
8
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
017c87a8
3 commits,
4 months ago
8 files
+
124
−
92
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
alu/alu_arch.vhd
+
18
−
2
Options
@@ -46,6 +46,7 @@ begin
-- fully combinational process for calculating the output.
comb
:
process
(
opcode_valid
,
operand_A
,
operand_B
,
div_valid
)
begin
case
opcode
is
when
x"1"
=>
-- add
alu_out
<=
std_logic_vector
(
signed
(
operand_A
)
+
signed
(
operand_B
));
@@ -98,10 +99,25 @@ begin
alu_ready
<=
'1'
;
end
case
;
-- Synthesis fails because of this
-- div_start <= '1' when opcode = x"6" else '1' when opcode = x"7" else '0';
-- div_do_mod <= '1' when opcode = x"7" else '0';
-- The start signals are done independently.
-- This is so they don't clutter the case statement.
div_start
<=
'1'
when
(
opcode
=
x"6"
or
opcode
=
x"7"
)
else
'0'
;
div_do_mod
<=
'1'
when
opcode
=
x"7"
else
'0'
;
if
opcode
=
x"6"
then
div_start
<=
'1'
;
div_do_mod
<=
'0'
;
elsif
opcode
=
x"7"
then
div_start
<=
'1'
;
div_do_mod
<=
'1'
;
else
div_start
<=
'0'
;
div_do_mod
<=
'0'
;
end
if
;
end
process
comb
;
end
alu
;
Loading