Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VME SBC A25 PCIe to VME bridge
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
VME SBC A25 PCIe to VME bridge
Commits
ba247313
Commit
ba247313
authored
May 22, 2018
by
Michael Miehling
Committed by
Grzegorz Daniluk
Feb 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed implementation of testcase vme_buserror
parent
657e8994
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
terminal_pkg.vhd
Testbench/Testbench_src/terminal_pkg.vhd
+10
-11
No files found.
Testbench/Testbench_src/terminal_pkg.vhd
View file @
ba247313
...
...
@@ -5663,8 +5663,8 @@ PACKAGE BODY terminal_pkg IS
print
(
" ---> test case skipped"
);
end
if
;
else
irq_req_berr
:
=
12
;
irq_req_dma
:
=
13
;
irq_req_berr
:
=
8
;
irq_req_dma
:
=
9
;
wr32
(
terminal_in_0
,
terminal_out_0
,
VME_REGS
+
x"0000_0010"
,
x"0000_0008"
,
1
,
en_msg_0
,
TRUE
,
"000001"
);
rd32
(
terminal_in_0
,
terminal_out_0
,
VME_REGS
+
x"0000_0010"
,
x"0000_0008"
,
1
,
en_msg_0
,
TRUE
,
"000001"
,
loc_err
);
err_sum
:
=
err_sum
+
loc_err
;
...
...
@@ -5801,12 +5801,11 @@ PACKAGE BODY terminal_pkg IS
print
(
" start DMA transfer"
);
wr32
(
terminal_in_0
,
terminal_out_0
,
VME_REGS
+
x"0000_002c"
,
x"0000_0003"
,
1
,
en_msg_0
,
TRUE
,
"000001"
);
-- start transfer
-- check for DMA interrupt
--wait_on_irq_assert(0);
-- check for buserror interrupt
bfm_calc_msi_expected
(
msi_allocated
=>
var_msi_allocated
,
msi_data
=>
MSI_DATA_VAL
,
msi_nbr
=>
irq_req_
dma
,
msi_nbr
=>
irq_req_
berr
,
msi_expected
=>
var_msi_expected
);
var_success
:
=
false
;
...
...
@@ -5822,15 +5821,15 @@ PACKAGE BODY terminal_pkg IS
if
en_msg_0
>=
1
then
print_now
(
"ERROR(vme_buserror): error while executing bfm_poll_msi()"
);
end
if
;
end
if
;
IF
irq_req
(
irq_req_
dma
)
=
'0'
THEN
print_time
(
"ERROR vme_dma_sram2pci:
dma
irq NOT asserted"
);
IF
irq_req
(
irq_req_
berr
)
=
'0'
THEN
print_time
(
"ERROR vme_dma_sram2pci:
buserror
irq NOT asserted"
);
END
IF
;
-- check for
buserror
interrupt
-- check for
DMA
interrupt
bfm_calc_msi_expected
(
msi_allocated
=>
var_msi_allocated
,
msi_data
=>
MSI_DATA_VAL
,
msi_nbr
=>
irq_req_
berr
,
msi_nbr
=>
irq_req_
dma
,
msi_expected
=>
var_msi_expected
);
var_success
:
=
false
;
...
...
@@ -5846,8 +5845,8 @@ PACKAGE BODY terminal_pkg IS
if
en_msg_0
>=
1
then
print_now
(
"ERROR(vme_buserror): error while executing bfm_poll_msi()"
);
end
if
;
end
if
;
IF
irq_req
(
irq_req_
berr
)
=
'0'
THEN
print_time
(
"ERROR vme_dma_sram2pci:
buserror
irq NOT asserted"
);
IF
irq_req
(
irq_req_
dma
)
=
'0'
THEN
print_time
(
"ERROR vme_dma_sram2pci:
dma
irq NOT asserted"
);
END
IF
;
WAIT
FOR
1
us
;
...
...
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