Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scMIPS
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
Model registry
Operate
Environments
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
Strozzi
scMIPS
Commits
12507e1d
There was a problem fetching the pipeline summary.
Commit
12507e1d
authored
9 years ago
by
Strozzi
Browse files
Options
Downloads
Patches
Plain Diff
Add comparator architecture
parent
3814eed6
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Architecture.jpg
+0
-0
0 additions, 0 deletions
Architecture.jpg
compare.vhd
+23
-0
23 additions, 0 deletions
compare.vhd
main_cttrl.vhd
+10
-1
10 additions, 1 deletion
main_cttrl.vhd
with
33 additions
and
1 deletion
Architecture.jpg
0 → 100644
+
0
−
0
View file @
12507e1d
149 KiB
This diff is collapsed.
Click to expand it.
compare.vhd
0 → 100644
+
23
−
0
View file @
12507e1d
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
use
ieee
.
numeric_std
.
all
;
entity
compare
is
port
(
inp_a
:
in
std_logic_vector
(
31
downto
0
);
inp_b
:
in
std_logic_vector
(
31
downto
0
);
outp
:
out
std_logic
);
end
compare
;
architecture
arc_compare
of
compare
is
begin
process
(
inp_a
,
inp_b
)
begin
if
inp_a
=
inp_b
then
outp
<=
'1'
;
else
outp
<=
'0'
;
end
if
;
end
process
;
end
architecture
arc_compare
;
This diff is collapsed.
Click to expand it.
main_cttrl.vhd
+
10
−
1
View file @
12507e1d
...
@@ -62,6 +62,14 @@ architecture arc_main_processor of main_processor is
...
@@ -62,6 +62,14 @@ architecture arc_main_processor of main_processor is
);
);
end
component
;
end
component
;
component
compare
is
port
(
inp_a
:
in
std_logic_vector
(
31
downto
0
);
inp_b
:
in
std_logic_vector
(
31
downto
0
);
outp
:
out
std_logic
);
end
component
;
component
ctrl
is
component
ctrl
is
port
(
port
(
opcode
:
in
std_logic_vector
(
5
downto
0
);
opcode
:
in
std_logic_vector
(
5
downto
0
);
...
@@ -301,7 +309,8 @@ begin
...
@@ -301,7 +309,8 @@ begin
c_reg
:
reg
port
map
(
clk
,
reset
,
s_ctrl_regwrite
,
s_geral_rs
,
s_geral_rt
,
s_mx_1_out_a
,
s_mx_5_out_a
,
s_reg_out_a
,
s_reg_out_b
);
c_reg
:
reg
port
map
(
clk
,
reset
,
s_ctrl_regwrite
,
s_geral_rs
,
s_geral_rt
,
s_mx_1_out_a
,
s_mx_5_out_a
,
s_reg_out_a
,
s_reg_out_b
);
c_extend_signal
:
extend_signal
port
map
(
s_geral_i_type
,
s_extend_signal_out_a
);
c_extend_signal
:
extend_signal
port
map
(
s_geral_i_type
,
s_extend_signal_out_a
);
c_add
:
add
port
map
(
s_add_pc_out_a
,
s_sl_2_out_a
,
s_add_out_a
);
c_add
:
add
port
map
(
s_add_pc_out_a
,
s_sl_2_out_a
,
s_add_out_a
);
c_ula
:
ula
port
map
(
s_reg_out_a
,
s_mx_2_out_a
,
s_ula_ctrl_out_a
,
s_ula_out_a
,
s_ula_zero
);
c_cmp
:
compare
port
map
(
s_reg_out_a
,
s_reg_out_b
,
s_ula_zero
);
c_ula
:
ula
port
map
(
s_reg_out_a
,
s_mx_2_out_a
,
s_ula_ctrl_out_a
,
s_ula_out_a
,
open
);
c_mx_2
:
mx_2
port
map
(
s_ctrl_alusrc
,
s_reg_out_b
,
s_extend_signal_out_a
,
s_mx_2_out_a
);
c_mx_2
:
mx_2
port
map
(
s_ctrl_alusrc
,
s_reg_out_b
,
s_extend_signal_out_a
,
s_mx_2_out_a
);
c_ula_ctrl
:
ula_ctrl
port
map
(
s_ctrl_aluop
,
s_geral_funct
,
s_ula_ctrl_out_a
);
c_ula_ctrl
:
ula_ctrl
port
map
(
s_ctrl_aluop
,
s_geral_funct
,
s_ula_ctrl_out_a
);
c_mx_3
:
mx_3
port
map
(
s_add_pc_out_a
,
s_add_out_a
,
s_and_1_out_a
,
s_mx_3_out_a
);
c_mx_3
:
mx_3
port
map
(
s_add_pc_out_a
,
s_add_out_a
,
s_and_1_out_a
,
s_mx_3_out_a
);
...
...
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