Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Platform-independent core collection
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Projects
Platform-independent core collection
Commits
04536cc3
Commit
04536cc3
authored
13 years ago
by
Tomasz Wlostowski
Browse files
Options
Downloads
Patches
Plain Diff
xwb_i2c_master: added g_interface_mode generic
parent
bddd2e82
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/wishbone/wb_i2c_master/xwb_i2c_master.vhd
+10
-0
10 additions, 0 deletions
modules/wishbone/wb_i2c_master/xwb_i2c_master.vhd
with
10 additions
and
0 deletions
modules/wishbone/wb_i2c_master/xwb_i2c_master.vhd
+
10
−
0
View file @
04536cc3
...
...
@@ -4,6 +4,9 @@ use ieee.std_logic_1164.all;
use
work
.
wishbone_pkg
.
all
;
entity
xwb_i2c_master
is
generic
(
g_interface_mode
:
t_wishbone_interface_mode
:
=
CLASSIC
);
port
(
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
...
...
@@ -51,6 +54,13 @@ architecture rtl of xwb_i2c_master is
begin
-- rtl
gen_test_mode
:
if
(
g_interface_mode
/=
CLASSIC
)
generate
assert
false
report
"xwb_i2c_master: this module can only work with CLASSIC wishbone interface"
severity
failure
;
end
generate
gen_test_mode
;
rst
<=
not
rst_n_i
;
Wrapped_I2C
:
i2c_master_top
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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