Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Conv TTL Blocking - Gateware
Commits
b5ff33c9
Commit
b5ff33c9
authored
Apr 07, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pulsetest and regtest top-level files in light of wb_i2c_slave updates
parent
d6aa4f02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
pulsetest.vhd
top/pulsetest/pulsetest.vhd
+13
-1
regtest.vhd
top/regtest/regtest.vhd
+13
-1
No files found.
top/pulsetest/pulsetest.vhd
View file @
b5ff33c9
...
...
@@ -549,8 +549,20 @@ begin
-- Set the I2C address signal according to ELMA protocol [1]
i2c_addr
<=
"10"
&
fpga_ga_i
;
-- Instantiate VBCP bridge component
-- Instantiate I2C bridge component
--
-- FSM watchdog timeout timer:
-- * consider bit period of 30 us
-- * 10 bits / byte transfer => 300 us
-- * 40 bytes in one transfer => 12000 us
-- * clk_i period = 50 ns => g_fsm_wdt = 12000 us / 50 ns = 240000
-- * multiply by two for extra safety => g_fsm_wdt = 480000
-- * Time to watchdog timeout: 480000 * 50ns = 24 ms
cmp_i2c_bridge
:
wb_i2c_bridge
generic
map
(
g_fsm_wdt
=>
480000
)
port
map
(
-- Clock, reset
...
...
top/regtest/regtest.vhd
View file @
b5ff33c9
...
...
@@ -282,8 +282,20 @@ begin
-- Set the I2C address signal according to ELMA protocol [1]
i2c_addr
<=
"10"
&
fpga_ga_i
;
-- Instantiate VBCP bridge component
-- Instantiate I2C bridge component
--
-- FSM watchdog timeout timer:
-- * consider bit period of 30 us
-- * 10 bits / byte transfer => 300 us
-- * 40 bytes in one transfer => 12000 us
-- * clk_i period = 50 ns => g_fsm_wdt = 12000 us / 50 ns = 240000
-- * multiply by two for extra safety => g_fsm_wdt = 480000
-- * Time to watchdog timeout: 480000 * 50ns = 24 ms
cmp_i2c_bridge
:
wb_i2c_bridge
generic
map
(
g_fsm_wdt
=>
480000
)
port
map
(
-- Clock, reset
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment