Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
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
FMC ADC 100M 14b 4cha - Gateware
Commits
b87643b0
Commit
b87643b0
authored
Nov 06, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust testbench to latest changes, add comments.
parent
992cc205
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
20 deletions
+13
-20
fmc_adc_100Ms_core_pkg.vhd
hdl/rtl/fmc_adc_100Ms_core_pkg.vhd
+1
-3
Manifest.py
hdl/testbench/fmc_adc_mezzanine/Manifest.py
+1
-0
main.sv
hdl/testbench/fmc_adc_mezzanine/main.sv
+11
-17
No files found.
hdl/rtl/fmc_adc_100Ms_core_pkg.vhd
View file @
b87643b0
...
...
@@ -52,9 +52,7 @@ package fmc_adc_100Ms_core_pkg is
generic
(
g_MULTISHOT_RAM_SIZE
:
natural
:
=
2048
;
g_WB_CSR_MODE
:
t_wishbone_interface_mode
:
=
PIPELINED
;
g_WB_CSR_GRANULARITY
:
t_wishbone_address_granularity
:
=
BYTE
;
g_WB_DDR_MODE
:
t_wishbone_interface_mode
:
=
PIPELINED
;
g_WB_DDR_GRANULARITY
:
t_wishbone_address_granularity
:
=
BYTE
g_WB_CSR_GRANULARITY
:
t_wishbone_address_granularity
:
=
BYTE
);
port
(
-- Clock, reset
...
...
hdl/testbench/fmc_adc_mezzanine/Manifest.py
View file @
b87643b0
...
...
@@ -12,6 +12,7 @@ fetchto = "../../ip_cores"
include_dirs
=
[
"../include"
,
fetchto
+
"/general-cores/sim/"
,
fetchto
+
"/general-cores/modules/wishbone/wb_spi/"
]
files
=
[
...
...
hdl/testbench/fmc_adc_mezzanine/main.sv
View file @
b87643b0
...
...
@@ -21,8 +21,10 @@ module main;
reg
[
3
:
0
]
adc0_dat_even
=
4'h0
;
reg
signed
[
13
:
0
]
adc0_data
=
0
;
// 400Mhz
always
#
1.25
ns
adc0_dco
<=
~
adc0_dco
;
// 125Mhz
always
#
4
ns
clk_sys
<=
~
clk_sys
;
initial
begin
...
...
@@ -32,30 +34,21 @@ module main;
IVHDWishboneMaster
Host
(
clk_sys
,
rst_n
)
;
wire
t_wishbone_slave_data64_out
dummy_wb64_out
=
'
{
ack
:
1'b1
,
err
:
1'b0
,
rty
:
1'b0
,
stall
:
1'b0
,
dat
:
64'bx
};
fmc_adc_mezzanine
#(
.
g_multishot_ram_size
(
2048
)
)
DUT
(
.
sys_clk_i
(
clk_sys
)
,
.
sys_rst_n_i
(
rst_n
)
,
.
wb_csr_adr_i
(
Host
.
out
.
adr
)
,
.
wb_csr_dat_i
(
Host
.
out
.
dat
)
,
.
wb_csr_dat_o
(
Host
.
in
.
dat
)
,
.
wb_csr_cyc_i
(
Host
.
out
.
cyc
)
,
.
wb_csr_sel_i
(
Host
.
out
.
sel
)
,
.
wb_csr_stb_i
(
Host
.
out
.
stb
)
,
.
wb_csr_we_i
(
Host
.
out
.
we
)
,
.
wb_csr_ack_o
(
Host
.
in
.
ack
)
,
.
wb_csr_stall_o
(
Host
.
in
.
stall
)
,
.
wb_csr_slave_i
(
Host
.
out
)
,
.
wb_csr_slave_o
(
Host
.
in
)
,
.
wb_ddr_clk_i
(
clk_sys
)
,
.
wb_ddr_adr_o
()
,
.
wb_ddr_dat_o
()
,
.
wb_ddr_sel_o
()
,
.
wb_ddr_stb_o
()
,
.
wb_ddr_we_o
()
,
.
wb_ddr_cyc_o
()
,
.
wb_ddr_ack_i
(
1'b1
)
,
.
wb_ddr_stall_i
(
1'b0
)
,
.
wb_ddr_rst_n_i
(
rst_n
)
,
.
wb_ddr_master_i
(
dummy_wb64_out
)
,
.
wb_ddr_master_o
()
,
.
ddr_wr_fifo_empty_i
()
,
.
trig_irq_o
()
,
.
acq_end_irq_o
()
,
...
...
@@ -111,6 +104,7 @@ module main;
end
end
// Generate a triangular waveform on all channels.
always
@
(
posedge
adc0_fr
)
begin
if
((
adc0_data
>
400
)
||
(
adc0_data
<
-
400
))
begin
...
...
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