Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
RTSD
HDL
Commits
b5af0f98
Commit
b5af0f98
authored
9 years ago
by
Kenneth Hiemstra
Browse files
Options
Downloads
Patches
Plain Diff
g_clock_stretch_sense -> g_clock_stretch_sense_scl
parent
0fc6d041
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
libraries/io/i2c/src/vhdl/i2c_byte.vhd
+3
-3
3 additions, 3 deletions
libraries/io/i2c/src/vhdl/i2c_byte.vhd
libraries/io/i2c/src/vhdl/i2c_smbus.vhd
+5
-5
5 additions, 5 deletions
libraries/io/i2c/src/vhdl/i2c_smbus.vhd
with
8 additions
and
8 deletions
libraries/io/i2c/src/vhdl/i2c_byte.vhd
+
3
−
3
View file @
b5af0f98
...
...
@@ -95,7 +95,7 @@ use ieee.std_logic_arith.all;
entity
i2c_byte
is
GENERIC
(
g_clock_stretch_sense
:
BOOLEAN
:
=
FALSE
g_clock_stretch_sense
_scl
:
BOOLEAN
:
=
FALSE
);
port
(
clk
:
in
std_logic
;
...
...
@@ -207,7 +207,7 @@ architecture structural of i2c_byte is
begin
-- hookup bit_controller
gen_bit_ctrl
:
IF
g_clock_stretch_sense
=
FALSE
GENERATE
gen_bit_ctrl
:
IF
g_clock_stretch_sense
_scl
=
FALSE
GENERATE
bit_ctrl
:
i2c_bit
port
map
(
clk
=>
clk
,
rst
=>
rst
,
...
...
@@ -228,7 +228,7 @@ begin
sda_oen
=>
sda_oen
);
END
GENERATE
;
gen_bit_ctrl_scl_sense
:
IF
g_clock_stretch_sense
=
TRUE
GENERATE
gen_bit_ctrl_scl_sense
:
IF
g_clock_stretch_sense
_scl
=
TRUE
GENERATE
bit_ctrl_scl_sense
:
i2c_bit_scl_sense
port
map
(
clk
=>
clk
,
rst
=>
rst
,
...
...
This diff is collapsed.
Click to expand it.
libraries/io/i2c/src/vhdl/i2c_smbus.vhd
+
5
−
5
View file @
b5af0f98
...
...
@@ -30,8 +30,8 @@ USE work.i2c_smbus_pkg.ALL;
ENTITY
i2c_smbus
is
GENERIC
(
g_i2c_phy
:
t_c_i2c_phy
;
g_clock_stretch_sense
:
BOOLEAN
:
=
FALSE
g_i2c_phy
:
t_c_i2c_phy
;
g_clock_stretch_sense
_scl
:
BOOLEAN
:
=
FALSE
);
port
(
-- GENERIC Signal
...
...
@@ -166,11 +166,11 @@ BEGIN
-- support for slow slave or multi master bus arbitriation, but that is acceptable, because these features are
-- not used for RCU and TDS in LOFAR.
gen_i2c_smbus_scl_oe_comma_reg
:
IF
g_clock_stretch_sense
=
FALSE
GENERATE
gen_i2c_smbus_scl_oe_comma_reg
:
IF
g_clock_stretch_sense
_scl
=
FALSE
GENERATE
scl_i
<=
NOT
scl_oe_comma_reg
;
END
GENERATE
;
gen_i2c_smbus_scl
:
IF
g_clock_stretch_sense
=
TRUE
GENERATE
gen_i2c_smbus_scl
:
IF
g_clock_stretch_sense
_scl
=
TRUE
GENERATE
scl_i
<=
scl
;
END
GENERATE
;
...
...
@@ -195,7 +195,7 @@ BEGIN
byte
:
ENTITY
work
.
i2c_byte
GENERIC
MAP
(
g_clock_stretch_sense
=>
g_clock_stretch_sense
g_clock_stretch_sense
_scl
=>
g_clock_stretch_sense
_scl
)
PORT
MAP
(
clk
=>
clk
,
...
...
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