Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CTU CAN FD IP Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canbus
CTU CAN FD IP Core
Commits
9abd0ed0
Commit
9abd0ed0
authored
Sep 28, 2018
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TX Buffer command register renamed.
parent
a19f4ed0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
30 deletions
+30
-30
src/Interrupts/intManager.vhd
src/Interrupts/intManager.vhd
+4
-4
src/Registers_Memory_Interface/canfd_registers.vhd
src/Registers_Memory_Interface/canfd_registers.vhd
+13
-13
test/lib/CANtestLib.vhd
test/lib/CANtestLib.vhd
+13
-13
No files found.
src/Interrupts/intManager.vhd
View file @
9abd0ed0
...
...
@@ -213,11 +213,11 @@ begin
int_input_active
(
ALI_IND
)
<=
arbitration_lost
;
int_input_active
(
EPI_IND
)
<=
error_passive_changed
;
int_input_active
(
DOI_IND
)
<=
rx_message_disc
;
int_input_active
(
E
I_IND
)
<=
error_warning_limit
;
int_input_active
(
T
I_IND
)
<=
tx_finished
;
int_input_active
(
R
I_IND
)
<=
rec_message_valid
;
int_input_active
(
E
WLI_IND
)
<=
error_warning_limit
;
int_input_active
(
T
XI_IND
)
<=
tx_finished
;
int_input_active
(
R
XI_IND
)
<=
rec_message_valid
;
int_input_active
(
LFI_IND
)
<=
loger_finished
;
int_input_active
(
R
FI_IND
)
<=
rx_full
;
int_input_active
(
R
XFI_IND
)
<=
rx_full
;
int_input_active
(
BSI_IND
)
<=
br_shifted
;
int_input_active
(
RBNEI_IND
)
<=
not
rx_empty
;
int_input_active
(
TXBHCI_IND
)
<=
or_reduce
(
txt_hw_cmd_int
);
...
...
src/Registers_Memory_Interface/canfd_registers.vhd
View file @
9abd0ed0
...
...
@@ -497,7 +497,7 @@ architecture rtl of canfd_registers is
prop_fd
<=
PROP_FD_RSTVAL
;
sam_norm
<=
TSM_RSTVAL
;
ewl
<=
EW
L
_LIMIT_RSTVAL
;
ewl
<=
EW_LIMIT_RSTVAL
;
erp
<=
ERP_LIMIT_RSTVAL
;
-- Message filters
...
...
@@ -536,10 +536,10 @@ architecture rtl of canfd_registers is
txt_buf_set_ready
<=
TXCR_RSTVAL
;
txt_buf_set_abort
<=
TXCA_RSTVAL
;
txt_buf_cmd_index
(
0
)
<=
TX
I
1_RSTVAL
;
txt_buf_cmd_index
(
1
)
<=
TX
I
2_RSTVAL
;
txt_buf_cmd_index
(
2
)
<=
TX
I
3_RSTVAL
;
txt_buf_cmd_index
(
3
)
<=
TX
I
4_RSTVAL
;
txt_buf_cmd_index
(
0
)
<=
TX
B
1_RSTVAL
;
txt_buf_cmd_index
(
1
)
<=
TX
B
2_RSTVAL
;
txt_buf_cmd_index
(
2
)
<=
TX
B
3_RSTVAL
;
txt_buf_cmd_index
(
3
)
<=
TX
B
4_RSTVAL
;
txt_buf_prior
(
0
)
<=
TXT1P_RSTVAL
;
txt_buf_prior
(
1
)
<=
TXT2P_RSTVAL
;
...
...
@@ -1005,8 +1005,8 @@ begin
--------------------------------------------------------
when
EWL_ADR
=>
-- Error warning limit
write_be_vect
(
ewl
,
0
,
7
,
data_in
,
EW
L
_LIMIT_L
,
EW
L
_LIMIT_H
,
sbe
);
write_be_vect
(
ewl
,
0
,
7
,
data_in
,
EW_LIMIT_L
,
EW_LIMIT_H
,
sbe
);
-- Error passive treshold
write_be_vect
(
erp
,
0
,
7
,
data_in
,
ERP_LIMIT_L
,
...
...
@@ -1116,8 +1116,8 @@ begin
-- Vector index for which buffer the command is active
write_be_vect
(
txt_buf_cmd_index
,
0
,
TXT_BUFFER_COUNT
-
1
,
data_in
,
TX
I
1_IND
,
TX
I
1_IND
+
txt_buf_cmd_index
'length
-
1
,
TXT_BUFFER_COUNT
-
1
,
data_in
,
TX
B
1_IND
,
TX
B
1_IND
+
txt_buf_cmd_index
'length
-
1
,
sbe
);
--------------------------------------------------------
...
...
@@ -1282,7 +1282,7 @@ begin
--------------------------------------------------------
when
EWL_ADR
=>
-- Error warning limit
data_out_int
(
EW
L_LIMIT_H
downto
EWL
_LIMIT_L
)
<=
ewl
;
data_out_int
(
EW
_LIMIT_H
downto
EW
_LIMIT_L
)
<=
ewl
;
-- Error passive treshold
data_out_int
(
ERP_LIMIT_H
downto
ERP_LIMIT_L
)
<=
erp
;
...
...
@@ -1465,10 +1465,10 @@ begin
--------------------------------------------------------
when
RX_STATUS_ADR
=>
data_out_int
<=
(
OTHERS
=>
'0'
);
data_out_int
(
RX
_EMPTY_IND
)
<=
rx_empty
;
data_out_int
(
RX
_FULL_IND
)
<=
rx_full
;
data_out_int
(
RX
E_IND
)
<=
rx_empty
;
data_out_int
(
RX
F_IND
)
<=
rx_full
;
data_out_int
(
RX
_FRC_H
downto
RX_
FRC_L
)
data_out_int
(
RX
FRC_H
downto
RX
FRC_L
)
<=
rx_message_count
;
data_out_int
(
RTSOP_IND
)
<=
rtsopt
;
...
...
test/lib/CANtestLib.vhd
View file @
9abd0ed0
...
...
@@ -3650,7 +3650,7 @@ package body CANtestLib is
end
if
;
-- Set index of Buffer on which the command should be executed.
data
(
buf_n
+
TX
I
1_IND
-
1
)
:
=
'1'
;
data
(
buf_n
+
TX
B
1_IND
-
1
)
:
=
'1'
;
-- Give the command
CAN_write
(
data
,
TX_COMMAND_ADR
,
ID
,
mem_bus
);
...
...
@@ -3713,16 +3713,16 @@ package body CANtestLib is
retVal
.
rx_full
:
=
false
;
retVal
.
rx_empty
:
=
false
;
if
(
data
(
RX
_FULL
_IND
)
=
'1'
)
then
if
(
data
(
RX
F
_IND
)
=
'1'
)
then
retVal
.
rx_full
:
=
true
;
end
if
;
if
(
data
(
RX
_EMPTY
_IND
)
=
'1'
)
then
if
(
data
(
RX
E
_IND
)
=
'1'
)
then
retVal
.
rx_empty
:
=
true
;
end
if
;
retVal
.
rx_frame_count
:
=
to_integer
(
unsigned
(
data
(
RX
_FRC_H
downto
RX_
FRC_L
)));
data
(
RX
FRC_H
downto
RX
FRC_L
)));
end
procedure
;
...
...
@@ -4031,15 +4031,15 @@ package body CANtestLib is
tmp
:
=
(
OTHERS
=>
'0'
);
if
(
interrupts
.
receive_int
)
then
tmp
(
RI_IND
)
:
=
'1'
;
tmp
(
R
X
I_IND
)
:
=
'1'
;
end
if
;
if
(
interrupts
.
transmitt_int
)
then
tmp
(
TI_IND
)
:
=
'1'
;
tmp
(
T
X
I_IND
)
:
=
'1'
;
end
if
;
if
(
interrupts
.
error_warning_int
)
then
tmp
(
EI_IND
)
:
=
'1'
;
tmp
(
E
WL
I_IND
)
:
=
'1'
;
end
if
;
if
(
interrupts
.
data_overrun_int
)
then
...
...
@@ -4071,7 +4071,7 @@ package body CANtestLib is
end
if
;
if
(
interrupts
.
rx_buffer_not_empty_int
)
then
tmp
(
RBNEI_IND
)
:
=
'1'
;
tmp
(
RBNE
WL
I_IND
)
:
=
'1'
;
end
if
;
if
(
interrupts
.
tx_buffer_hw_cmd
)
then
...
...
@@ -4090,15 +4090,15 @@ package body CANtestLib is
tmp
:
=
(
false
,
false
,
false
,
false
,
false
,
false
,
false
,
false
,
false
,
false
,
false
,
false
);
if
(
int_reg
(
RI_IND
)
=
'1'
)
then
if
(
int_reg
(
R
X
I_IND
)
=
'1'
)
then
tmp
.
receive_int
:
=
true
;
end
if
;
if
(
int_reg
(
TI_IND
)
=
'1'
)
then
if
(
int_reg
(
T
X
I_IND
)
=
'1'
)
then
tmp
.
transmitt_int
:
=
true
;
end
if
;
if
(
int_reg
(
EI_IND
)
=
'1'
)
then
if
(
int_reg
(
E
WL
I_IND
)
=
'1'
)
then
tmp
.
error_warning_int
:
=
true
;
end
if
;
...
...
@@ -4252,7 +4252,7 @@ package body CANtestLib is
variable
data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
begin
data
(
EW
L_LIMIT_H
downto
EWL
_LIMIT_L
)
:
=
data
(
EW
_LIMIT_H
downto
EW
_LIMIT_L
)
:
=
std_logic_vector
(
to_unsigned
(
fault_th
.
ewl
,
8
));
data
(
ERP_LIMIT_H
downto
ERP_LIMIT_L
)
:
=
...
...
@@ -4273,7 +4273,7 @@ package body CANtestLib is
begin
CAN_read
(
data
,
EWL_ADR
,
ID
,
mem_bus
,
BIT_16
);
fault_th
.
ewl
:
=
to_integer
(
unsigned
(
data
(
EW
L_LIMIT_H
downto
EWL
_LIMIT_L
)));
data
(
EW
_LIMIT_H
downto
EW
_LIMIT_L
)));
CAN_read
(
data
,
ERP_ADR
,
ID
,
mem_bus
,
BIT_16
);
fault_th
.
erp
:
=
to_integer
(
unsigned
(
...
...
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