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
5fca194d
There was a problem fetching the pipeline summary.
Commit
5fca194d
authored
9 years ago
by
Strozzi
Browse files
Options
Downloads
Patches
Plain Diff
mux
parent
781f6072
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mux.vhd
+48
-0
48 additions, 0 deletions
mux.vhd
with
48 additions
and
0 deletions
mux.vhd
0 → 100644
+
48
−
0
View file @
5fca194d
-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- complete implementation of patterson and hennessy single cycle mips processor
-- copyright (c) 2015 darci luiz tomasi junior
--
-- this program is free software: you can redistribute it and/or modify
-- it under the terms of the gnu general public license as published by
-- the free software foundation, version 3.
--
-- this program is distributed in the hope that it will be useful,
-- but without any warranty; without even the implied warranty of
-- merchantability or fitness for a particular purpose. see the
-- gnu general public license for more details.
--
-- you should have received a copy of the gnu general public license
-- along with this program. if not, see <http://www.gnu.org/licenses/>.
--
-- engineer: darci luiz tomasi junior
-- e-mail: dltj007@gmail.com
-- date : 08/07/2015 - 19:11
-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
entity
mux
is
port
(
in_a
:
in
std_logic_vector
(
31
downto
0
);
in_b
:
in
std_logic_vector
(
31
downto
0
);
in_c
:
in
std_logic_vector
(
31
downto
0
);
sel
:
in
std_logic_vector
(
1
downto
0
);
out_a
:
out
std_logic_vector
(
31
downto
0
)
);
end
mux
;
architecture
arc_mux
of
mux
is
begin
process
(
sel
,
in_a
,
in_b
,
in_c
)
begin
if
sel
=
"00"
then
out_a
<=
in_a
;
elsif
sel
=
"01"
then
out_a
<=
in_b
;
elsif
sel
=
"10"
then
out_a
<=
in_c
;
end
if
;
end
process
;
end
arc_mux
;
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