Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rimfaxe
vme_core
Commits
70c3899a
Commit
70c3899a
authored
Apr 17, 2020
by
Michael Munch
Browse files
Added timeout signal
parent
fcc36f75
Pipeline
#19381
failed with stage
in 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/vme_data_bus.vhd
View file @
70c3899a
...
...
@@ -181,7 +181,7 @@ entity vme_data_bus is
signal
int_blt_decided
:
in
std_logic
;
signal
int_blt_continue
:
in
std_logic
;
signal
int_timeout_n
:
in
std_logic
;
signal
int_timeout_n
:
in
std_logic
);
end
entity
;
...
...
@@ -475,11 +475,11 @@ begin
if
(
vme_berr_n_i
&
int_timeout_n
/=
"11"
)
then
vme_ds_n_o
<=
"11"
;
vme_as_n_o
<=
'1'
;
i
f
(
int_timeout_n
=
'0'
)
then
int_err_code
<=
c_ERR_TIMEOUT
;
else
int_err_code
<=
c_ERR_BERR
;
end
if
;
i
nt_err_code
<=
(
c_ERR_BERR_I
=>
not
vme_berr_n_i
,
c_ERR_TIMEOUT_I
=>
not
int_timeout_n
,
others
=>
'0'
)
;
busy
<=
'0'
;
state
<=
IDLE
;
...
...
src/vme_pkg.vhd
View file @
70c3899a
...
...
@@ -90,6 +90,10 @@ package vme_pkg is
constant
c_ERR_ADDR_MODE
:
err_vec_t
:
=
"0010"
;
constant
c_ERR_BERR
:
err_vec_t
:
=
"0100"
;
constant
c_ERR_TIMEOUT
:
err_vec_t
:
=
"1000"
;
constant
c_ERR_TRANSFER_MODE_I
:
natural
:
=
0
;
constant
c_ERR_ADDR_MODE_I
:
natural
:
=
1
;
constant
c_ERR_BERR_I
:
natural
:
=
2
;
constant
c_ERR_TIMEOUT_I
:
natural
:
=
3
;
end
package
;
...
...
Write
Preview
Supports
Markdown
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