Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VME64x core - msaccani
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Mathieu Saccani
VME64x core - msaccani
Commits
3dd0b23a
Commit
3dd0b23a
authored
Jul 24, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim: cleanup in vme bfm.
parent
4d39f9df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
24 deletions
+6
-24
svec_vme_buffers.svh
hdl/sim/vme64x_bfm/svec_vme_buffers.svh
+3
-3
vme64x_bfm.svh
hdl/sim/vme64x_bfm/vme64x_bfm.svh
+3
-21
No files found.
hdl/sim/vme64x_bfm/svec_vme_buffers.svh
View file @
3dd0b23a
...
...
@@ -18,8 +18,6 @@ module bidir_buf(
endmodule
// bidir_buf
module
svec_vme_buffers
(
output
VME_AS_n_o
,
output
VME_RST_n_o
,
...
...
@@ -92,7 +90,7 @@ module svec_vme_buffers (
bidir_buf
#(
1
)
b0
(
slave
.
lword_n
,
VME_LWORD_n_b
,
VME_ADDR_DIR_i
,
VME_ADDR_OE_N_i
)
;
bidir_buf
#(
31
)
b1
(
slave
.
addr
,
VME_ADDR_b
,
VME_ADDR_DIR_i
,
VME_ADDR_OE_N_i
)
;
bidir_buf
#(
3
3
)
b2
(
slave
.
data
,
VME_DATA_b
,
VME_DATA_DIR_i
,
VME_DATA_OE_N_i
)
;
bidir_buf
#(
3
2
)
b2
(
slave
.
data
,
VME_DATA_b
,
VME_DATA_DIR_i
,
VME_DATA_OE_N_i
)
;
pulldown
(
VME_BERR_i
)
;
pulldown
(
VME_ADDR_DIR_i
)
;
...
...
@@ -115,6 +113,7 @@ endmodule
wire VME_WRITE_n
;
\
wire
[
5
:
0
]
VME_AM
;
\
wire
[
1
:
0
]
VME_DS_n
;
\
wire
[
5
:
0
]
VME_GA
;
\
wire VME_BERR
;
\
wire VME_DTACK_n
;
\
wire VME_RETRY_n
;
\
...
...
@@ -136,6 +135,7 @@ endmodule
.
VME_RST_n_o
(
VME_RST_n
),
\
.
VME_WRITE_n_o
(
VME_WRITE_n
),
\
.
VME_AM_o
(
VME_AM
),
\
.
VME_GA_o
(
VME_GA
),
\
.
VME_DS_n_o
(
VME_DS_n
),
\
.
VME_BERR_i
(
VME_BERR
),
\
.
VME_DTACK_n_i
(
VME_DTACK_n
),
\
...
...
hdl/sim/vme64x_bfm/vme64x_bfm.svh
View file @
3dd0b23a
`ifndef
__
VME64X_BFM_SVH
`define
__VME64X_BFM_SVH 1
`define
__VME64X_BFM_SVH 1
`timescale
1
ns
/
1
ps
...
...
@@ -19,9 +19,6 @@ begin\
end
interface
IVME64X
(
input
sys_rst_n_i
)
;
wire
as_n
;
...
...
@@ -324,10 +321,8 @@ class CBusAccessor_VME64x extends CBusAccessor;
// $display("RWG %x\n", _data.size());
for
(
i
=
0
;
i
<
_
data
.
size
()
;
i
++
)
begin
if
(
write
)
vme
.
q_data
=
(
dtype
==
D08Byte0
||
dtype
==
D08Byte2
)
?
(
_
data
[
i
]
<<
8
)
:
(
_
data
[
i
])
;
...
...
@@ -341,8 +336,7 @@ class CBusAccessor_VME64x extends CBusAccessor;
if
(
!
write
)
_
data
[
i
]
=
(
dtype
==
D08Byte0
||
dtype
==
D08Byte2
)
?
(
vme
.
data
>>
8
)
:
(
vme
.
data
)
;
#
40
ns
;
end
// for (i=0;i<_data.size();i++)
end
// for (i=0;i<_data.size();i++)
release_bus
()
;
endtask
// rw_generic
...
...
@@ -407,7 +401,6 @@ class CBusAccessor_VME64x extends CBusAccessor;
//$display("AM=%x", size);
da
=
new
[
1
]
;
aa
[
0
]
=
addr
;
...
...
@@ -422,10 +415,8 @@ class CBusAccessor_VME64x extends CBusAccessor;
// $display("VMEWrite s %x", size);
aa
[
0
]
=
addr
;
da
[
0
]
=
data
;
writem
(
aa
,
da
,
size
,
result
)
;
endtask
...
...
@@ -447,17 +438,8 @@ class CBusAccessor_VME64x extends CBusAccessor;
acknowledge_irq
(
level
,
vector
)
;
$
display
(
"vme64x_bfm: vector %x"
,
vector
)
;
done
=
1
;
end
endtask
// handle_irqs
endtask
// handle_irqs
endclass
// CBusAccessor_VME64x
`endif
// `ifndef __VME64X_BFM_SVH
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