Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
9acfc5c3
Commit
9acfc5c3
authored
Feb 10, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed some old temporary files
parent
466a4a4e
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
0 additions
and
1974 deletions
+0
-1974
test_dqs.v
memctrl/phy/test_dqs.v
+0
-116
test_dqs01.v
memctrl/phy/test_dqs01.v
+0
-59
test_dqs01_placement.xdc
memctrl/phy/test_dqs01_placement.xdc
+0
-95
test_dqs02.v
memctrl/phy/test_dqs02.v
+0
-154
test_dqs02_placement.xdc
memctrl/phy/test_dqs02_placement.xdc
+0
-82
test_dqs03.v
memctrl/phy/test_dqs03.v
+0
-83
test_dqs03_placement.xdc
memctrl/phy/test_dqs03_placement.xdc
+0
-152
test_dqs04.v
memctrl/phy/test_dqs04.v
+0
-129
test_dqs04_placement.xdc
memctrl/phy/test_dqs04_placement.xdc
+0
-152
test_dqs05.v
memctrl/phy/test_dqs05.v
+0
-174
test_dqs05_placement.xdc
memctrl/phy/test_dqs05_placement.xdc
+0
-154
test_dqs06.v
memctrl/phy/test_dqs06.v
+0
-74
test_dqs06_placement.xdc
memctrl/phy/test_dqs06_placement.xdc
+0
-102
test_dqs07.v
memctrl/phy/test_dqs07.v
+0
-108
test_dqs07_placement.xdc
memctrl/phy/test_dqs07_placement.xdc
+0
-104
test_phy_top_01.xdc
memctrl/phy/test_phy_top_01.xdc
+0
-236
No files found.
memctrl/phy/test_dqs.v
deleted
100644 → 0
View file @
466a4a4e
/*******************************************************************************
* Module: test_dqs
* Date:2014-04-26
* Author: Andrey Filippov
* Description: Testing DQS implementation
*
* Copyright (c) 2014 Elphel, Inc.
* test_dqs.v is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* test_dqs.v is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> .
*******************************************************************************/
`timescale
1
ns
/
1
ps
module
test_dqs
(
input
rst
,
// reset
input
refclk
,
// 200MHz/300MHz for delay calibration
input
clk_in
,
input
set
,
input
ld_dly_data
,
input
ld_dly_tri
,
input
[
7
:
0
]
dly_data
,
input
[
3
:
0
]
data_in
,
input
[
3
:
0
]
tri_in
,
inout
dqs
,
inout
ndqs
,
output
dqs_received
,
output
dly_ready
,
// input dqs_tri_a,
output
dqs_tri
)
;
wire
refclk_b
=
refclk
;
// use buffer
wire
clk
,
clk_div
;
//wire dqs_data,dqs_tri; // after odelay
wire
dqs_data
;
// after odelay
wire
pre_dqs_data
,
pre_dqs_tri
;
// before odelay
BUFR
#(
.
BUFR_DIVIDE
(
"2"
))
clk_div_i
(
.
I
(
clk_in
)
,.
O
(
clk_div
)
,.
CLR
(
rst
)
,
.
CE
(
1'b1
))
;
BUFR
#(
.
BUFR_DIVIDE
(
"BYPASS"
))
clk_i
(
.
I
(
clk_in
)
,.
O
(
clk
)
,
.
CLR
(
1'b0
)
,.
CE
(
1'b1
))
;
oserdes_mem
oserdes_dqs_i
(
.
clk
(
clk
)
,
// serial output clock
.
clk_div
(
clk_div
)
,
// oclk divided by 2, front aligned
.
rst
(
rst
)
,
// reset
.
din
(
data_in
)
,
// parallel data in
.
tin
(
tri_in
)
,
// parallel tri-state in
.
dout_dly
()
,
// data out to be connected to odelay input
.
dout_iob
(
pre_dqs_data
)
,
// data out to be connected directly to the output buffer
.
tout_dly
()
,
// tristate out to be connected to odelay input
.
tout_iob
(
pre_dqs_tri
)
// tristate out to be connected directly to the tristate control of the output buffer
)
;
idelay_ctrl
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
)
idelay_ctrl_i
(
.
refclk
(
refclk_b
)
,
.
rst
(
rst
)
,
.
rdy
(
dly_ready
)
)
;
odelay_fine_pipe
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
,
.
DELAY_VALUE
(
0
)
,
.
REFCLK_FREQUENCY
(
300.0
)
,
.
HIGH_PERFORMANCE_MODE
(
"FALSE"
)
)
dqs_data_dly_i
(
.
clk
(
clk_div
)
,
.
rst
(
rst
)
,
.
set
(
set
)
,
.
ld
(
ld_dly_data
)
,
.
delay
(
dly_data
)
,
.
data_in
(
pre_dqs_data
)
,
.
data_out
(
dqs_data
)
)
;
odelay_fine_pipe
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
,
.
DELAY_VALUE
(
0
)
,
.
REFCLK_FREQUENCY
(
300.0
)
,
.
HIGH_PERFORMANCE_MODE
(
"FALSE"
)
)
dqs_tri_dly_i
(
.
clk
(
clk_div
)
,
.
rst
(
rst
)
,
.
set
(
set
)
,
.
ld
(
ld_dly_tri
)
,
.
delay
(
dly_data
)
,
.
data_in
(
pre_dqs_tri
)
,
.
data_out
(
dqs_tri
)
)
;
//wire dqs_tri_a;
//(* keep = "true" *) BUF buf0_i(.O(dqs_tri_a), .I(dqs_tri));
IOBUFDS
#(
.
DQS_BIAS
(
"FALSE"
)
,
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"DEFAULT"
)
,
.
SLEW
(
"SLOW"
)
)
iobufs_dqs_i
(
.
O
(
dqs_received
)
,
.
IO
(
dqs
)
,
.
IOB
(
ndqs
)
,
.
I
(
dqs_data
)
,
// .T(dqs_tri_a));
.
T
(
1'b0
))
;
endmodule
memctrl/phy/test_dqs01.v
deleted
100644 → 0
View file @
466a4a4e
/*******************************************************************************
* Module: test_dqs01
* Date:2014-04-26
* Author: Andrey Filippov
* Description: Testing DQS implementation
*
* Copyright (c) 2014 Elphel, Inc.
* test_dqs01.v is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* test_dqs01.v is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> .
*******************************************************************************/
`timescale
1
ns
/
1
ps
module
test_dqs01
(
input
[
1
:
0
]
dqs_data
,
inout
[
1
:
0
]
dqs
,
inout
[
1
:
0
]
ndqs
,
output
[
1
:
0
]
dqs_received
,
input
[
1
:
0
]
dqs_tri
)
;
IOBUFDS
#(
.
DQS_BIAS
(
"FALSE"
)
,
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"DEFAULT"
)
,
.
SLEW
(
"SLOW"
)
)
iobufs_dqs_i0
(
.
O
(
dqs_received
[
0
])
,
.
IO
(
dqs
[
0
])
,
.
IOB
(
ndqs
[
0
])
,
.
I
(
dqs_data
[
0
])
,
.
T
(
dqs_tri
[
0
]))
;
IOBUFDS
#(
.
DQS_BIAS
(
"FALSE"
)
,
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"DEFAULT"
)
,
.
SLEW
(
"SLOW"
)
)
iobufs_dqs_i1
(
.
O
(
dqs_received
[
1
])
,
.
IO
(
dqs
[
1
])
,
.
IOB
(
ndqs
[
1
])
,
.
I
(
dqs_data
[
1
])
,
.
T
(
dqs_tri
[
1
]))
;
endmodule
memctrl/phy/test_dqs01_placement.xdc
deleted
100644 → 0
View file @
466a4a4e
set_property PACKAGE_PIN N7 [get_ports {dqs}]
set_property SLEW FAST [get_ports {dqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {dqs}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs}]
set_property PACKAGE_PIN N6 [get_ports {ndqs}]
set_property SLEW FAST [get_ports {ndqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {ndqs}]
# input dqs_data,
# inout dqs,
# inout ndqs,
# output dqs_received,
# input dqs_tri
#set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
#set_property IOSTANDARD LVCMOS15 [get_ports {refclk}]
#set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
#set_property IOSTANDARD LVCMOS15 [get_ports {set}]
#set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_data}]
#set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_tri}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[7]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[6]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[5]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[0]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_received}]
set_property PACKAGE_PIN K4 [get_ports {dqs_received}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_data}]
set_property PACKAGE_PIN K6 [get_ports {dqs_data}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs_date}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_tri}]
set_property PACKAGE_PIN K7 [get_ports {dqs_tri}]
# input rst, // reset
# input refclk, // 200MHz/300MHz for delay calibration
# input clk_in,
# input set,
# input ld_dly_data,
# input ld_dly_tri,
# input [7:0] dly_data,
# input [3:0] data_in,
# input [3:0] tri_in,
# inout dqs,
# inout ndqs,
# output dqs_received,
# output dly_ready,
# input dqs_tri_a,
# output dqs_tri
#set_property PACKAGE_PIN A1 [get_ports {COUNT[2]}]
#set_property PACKAGE_PIN B2 [get_ports {COUNT[1]}]
#set_property PACKAGE_PIN C2 [get_ports {COUNT[0]}]
#set_property PULLUP true [get_ports {COUNT[3]}]
#set_property PULLUP true [get_ports {COUNT[2]}]
#set_property PULLUP true [get_ports {COUNT[1]}]
#set_property PULLUP true [get_ports {COUNT[0]}]
#set_property PACKAGE_PIN A4 [get_ports ENABLE]
#set_property PACKAGE_PIN B4 [get_ports RESET]
#set_property PACKAGE_PIN C1 [get_ports CLK]
#set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets CLK_IBUF]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[3]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[2]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[1]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[0]}]
#set_property IOSTANDARD LVCMOS18 [get_ports ENABLE]
#set_property IOSTANDARD LVCMOS18 [get_ports RESET]
#set_property IOSTANDARD LVCMOS18 [get_ports CLK]
set_property INTERNAL_VREF 0.750 [get_iobanks 34]
set_property CFGBVS GND [current_design]
set_property CONFIG_VOLTAGE 1.8 [current_design]
\ No newline at end of file
memctrl/phy/test_dqs02.v
deleted
100644 → 0
View file @
466a4a4e
/*******************************************************************************
* Module: test_dqs02
* Date:2014-04-26
* Author: Andrey Filippov
* Description: Testing DQS implementation
*
* Copyright (c) 2014 Elphel, Inc.
* test_dqs02.v is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* test_dqs02.v is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> .
*******************************************************************************/
`timescale
1
ns
/
1
ps
module
test_dqs02
(
input
rst
,
// reset
input
refclk
,
// 200MHz/300MHz for delay calibration
input
clk_in
,
// input set,
// input ld_dly_data,
// input ld_dly_tri,
// input [7:0] dly_data,
input
[
3
:
0
]
data_in
,
// input [3:0] tri_in,
inout
dqs
,
// inout ndqs,
output
dqs_received
,
output
dly_ready
// input dqs_tri_a,
// output dqs_tri
// output dqs_data
)
;
wire
refclk_b
=
refclk
;
// use buffer
wire
clk
,
clk_div
;
//wire dqs_data,dqs_tri; // after odelay
//wire dqs_data; // after odelay
//wire pre_dqs_data,pre_dqs_tri; // before odelay
wire
dqs_data
;
BUFR
#(
.
BUFR_DIVIDE
(
"2"
))
clk_div_i
(
.
I
(
clk_in
)
,.
O
(
clk_div
)
,.
CLR
(
rst
)
,
.
CE
(
1'b1
))
;
BUFR
#(
.
BUFR_DIVIDE
(
"BYPASS"
))
clk_i
(
.
I
(
clk_in
)
,.
O
(
clk
)
,
.
CLR
(
1'b0
)
,.
CE
(
1'b1
))
;
oserdes_mem
oserdes_dqs_i
(
.
clk
(
clk
)
,
// serial output clock
.
clk_div
(
clk_div
)
,
// oclk divided by 2, front aligned
.
rst
(
rst
)
,
// reset
.
din
(
data_in
)
,
// parallel data in
// .tin(tri_in), // parallel tri-state in
.
tin
()
,
// parallel tri-state in
.
dout_dly
()
,
//pre_dqs_data), // data out to be connected to odelay input
.
dout_iob
(
dqs_data
)
,
// data out to be connected directly to the output buffer
.
tout_dly
()
,
// tristate out to be connected to odelay input
// .tout_iob(pre_dqs_tri) // tristate out to be connected directly to the tristate control of the output buffer
.
tout_iob
()
// tristate out to be connected directly to the tristate control of the output buffer
)
;
idelay_ctrl
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
)
idelay_ctrl_i
(
.
refclk
(
refclk_b
)
,
.
rst
(
rst
)
,
.
rdy
(
dly_ready
)
)
;
/*
odelay_fine_pipe # (
.IODELAY_GRP("IODELAY_MEMORY"),
.DELAY_VALUE(0),
.REFCLK_FREQUENCY(300.0),
.HIGH_PERFORMANCE_MODE("FALSE")
) dqs_data_dly_i(
.clk(clk_div),
.rst(rst),
.set(set),
.ld(ld_dly_data),
.delay(dly_data),
.data_in(pre_dqs_data),
.data_out(dqs_data)
);
*/
/*
odelay_pipe # (
.IODELAY_GRP("IODELAY_MEMORY"),
.DELAY_VALUE(0),
.REFCLK_FREQUENCY(300.0),
.HIGH_PERFORMANCE_MODE("FALSE")
) dqs_data_dly_i(
.clk(clk_div),
.rst(rst),
.set(set),
.ld(ld_dly_data),
.delay(dly_data[7:3]),
.data_in(pre_dqs_data),
.data_out(dqs_data)
);
*/
/*
odelay_fine_pipe # (
.IODELAY_GRP("IODELAY_MEMORY"),
.DELAY_VALUE(0),
.REFCLK_FREQUENCY(300.0),
.HIGH_PERFORMANCE_MODE("FALSE")
) dqs_tri_dly_i(
.clk(clk_div),
.rst(rst),
.set(set),
.ld(ld_dly_tri),
.delay(dly_data),
.data_in(pre_dqs_tri),
.data_out(dqs_tri)
);
*/
//wire dqs_tri_a;
//(* keep = "true" *) BUF buf0_i(.O(dqs_tri_a), .I(dqs_tri));
/*
IOBUFDS #(
.DQS_BIAS("FALSE"),
.IBUF_LOW_PWR("TRUE"),
.IOSTANDARD("DEFAULT"),
.SLEW("SLOW")
) iobufs_dqs_i (
.O(dqs_received),
.IO(dqs),
.IOB(ndqs),
.I(dqs_data),
// .T(dqs_tri));
.T());
*/
IOBUF
#(
// .DQS_BIAS("FALSE"),
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"DEFAULT"
)
,
.
SLEW
(
"SLOW"
)
)
iobufs_dqs_i
(
.
O
(
dqs_received
)
,
.
IO
(
dqs
)
,
.
I
(
dqs_data
)
,
// .T(dqs_tri));
.
T
(
dqs_data
))
;
endmodule
memctrl/phy/test_dqs02_placement.xdc
deleted
100644 → 0
View file @
466a4a4e
set_property PACKAGE_PIN N7 [get_ports {dqs}]
set_property SLEW FAST [get_ports {dqs}]
#set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {dqs}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs}]
#set_property PACKAGE_PIN N6 [get_ports {ndqs}]
#set_property SLEW FAST [get_ports {ndqs}]
#set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {ndqs}]
set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
set_property IOSTANDARD LVCMOS15 [get_ports {refclk}]
set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
set_property IOSTANDARD LVCMOS15 [get_ports {set}]
set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_data}]
set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_tri}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[7]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[6]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[5]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {data_in[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {data_in[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {data_in[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {data_in[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_received}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_tri_a}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_tri}]
# input rst, // reset
# input refclk, // 200MHz/300MHz for delay calibration
# input clk_in,
# input set,
# input ld_dly_data,
# input ld_dly_tri,
# input [7:0] dly_data,
# input [3:0] data_in,
# input [3:0] tri_in,
# inout dqs,
# inout ndqs,
# output dqs_received,
# output dly_ready,
# input dqs_tri_a,
# output dqs_tri
#set_property PACKAGE_PIN A1 [get_ports {COUNT[2]}]
#set_property PACKAGE_PIN B2 [get_ports {COUNT[1]}]
#set_property PACKAGE_PIN C2 [get_ports {COUNT[0]}]
#set_property PULLUP true [get_ports {COUNT[3]}]
#set_property PULLUP true [get_ports {COUNT[2]}]
#set_property PULLUP true [get_ports {COUNT[1]}]
#set_property PULLUP true [get_ports {COUNT[0]}]
#set_property PACKAGE_PIN A4 [get_ports ENABLE]
#set_property PACKAGE_PIN B4 [get_ports RESET]
#set_property PACKAGE_PIN C1 [get_ports CLK]
#set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets CLK_IBUF]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[3]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[2]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[1]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[0]}]
#set_property IOSTANDARD LVCMOS18 [get_ports ENABLE]
#set_property IOSTANDARD LVCMOS18 [get_ports RESET]
#set_property IOSTANDARD LVCMOS18 [get_ports CLK]
set_property INTERNAL_VREF 0.750 [get_iobanks 34]
memctrl/phy/test_dqs03.v
deleted
100644 → 0
View file @
466a4a4e
/*******************************************************************************
* Module: test_dqs03
* Date:2014-04-26
* Author: Andrey Filippov
* Description: Testing DQS implementation
*
* Copyright (c) 2014 Elphel, Inc.
* test_dqs03.v is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* test_dqs03.v is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> .
*******************************************************************************/
`timescale
1
ns
/
1
ps
module
test_dqs03
(
input
dqs_data
,
inout
dqs
,
inout
ndqs
,
input
clk_in
,
input
clk_ref_in
,
input
rst
,
output
dqs_received
,
input
dqs_tri
,
output
dly_ready
,
input
[
4
:
0
]
dly_data
,
input
set
,
input
ld
)
;
//SuppressWarnings all
wire
clk
;
wire
clk_div
,
clk_ref
;
wire
dqs_data_dly
;
BUFR
#(
.
BUFR_DIVIDE
(
"2"
))
clk_div_i
(
.
I
(
clk_in
)
,.
O
(
clk_div
)
,.
CLR
(
rst
)
,
.
CE
(
1'b1
))
;
BUFR
#(
.
BUFR_DIVIDE
(
"BYPASS"
))
clk_i
(
.
I
(
clk_in
)
,.
O
(
clk
)
,
.
CLR
(
1'b0
)
,.
CE
(
1'b1
))
;
BUFG
ref_clk_i
(
.
I
(
clk_ref_in
)
,.
O
(
clk_ref
))
;
idelay_ctrl
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
)
idelay_ctrl_i
(
.
refclk
(
clk_ref
)
,
.
rst
(
rst
)
,
.
rdy
(
dly_ready
)
)
;
odelay_pipe
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
,
.
DELAY_VALUE
(
0
)
,
.
REFCLK_FREQUENCY
(
300.0
)
,
.
HIGH_PERFORMANCE_MODE
(
"FALSE"
)
)
dqs_data_dly_i
(
.
clk
(
clk_div
)
,
.
rst
(
rst
)
,
.
set
(
set
)
,
.
ld
(
ld
)
,
.
delay
(
dly_data
)
,
.
data_in
(
dqs_data
)
,
.
data_out
(
dqs_data_dly
)
)
;
IOBUFDS
#(
.
DQS_BIAS
(
"FALSE"
)
,
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"DEFAULT"
)
,
.
SLEW
(
"SLOW"
)
)
iobufs_dqs_i
(
.
O
(
dqs_received
)
,
.
IO
(
dqs
)
,
.
IOB
(
ndqs
)
,
.
I
(
dqs_data_dly
)
,
//dqs_data),
.
T
(
dqs_tri
))
;
endmodule
memctrl/phy/test_dqs03_placement.xdc
deleted
100644 → 0
View file @
466a4a4e
set_property PACKAGE_PIN N7 [get_ports {dqs}]
set_property SLEW FAST [get_ports {dqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {dqs}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs}]
set_property PACKAGE_PIN N6 [get_ports {ndqs}]
set_property SLEW FAST [get_ports {ndqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {ndqs}]
# input dqs_data,
# inout dqs,
# inout ndqs,
# output dqs_received,
# input dqs_tri
#set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
#set_property IOSTANDARD LVCMOS15 [get_ports {refclk}]
#set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
#set_property IOSTANDARD LVCMOS15 [get_ports {set}]
#set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_data}]
#set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_tri}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[7]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[6]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[5]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[0]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_received}]
set_property PACKAGE_PIN K4 [get_ports {dqs_received}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_data}]
set_property PACKAGE_PIN K6 [get_ports {dqs_data}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs_date}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_tri}]
set_property PACKAGE_PIN K7 [get_ports {dqs_tri}]
# input dqs_data,
# inout dqs,
# inout ndqs,
# output dqs_received,
# input dqs_tri,
set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
set_property PACKAGE_PIN M5 [get_ports {clk_in}]
set_property IOSTANDARD LVCMOS15 [get_ports {clk_ref_in}]
set_property PACKAGE_PIN L4 [get_ports {clk_ref_in}]
set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
set_property PACKAGE_PIN L5 [get_ports {rst}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
set_property PACKAGE_PIN M2 [get_ports {dly_ready}]
# input clk_in,
# input clk_ref_in,
# input rst,
# output dly_ready
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
set_property PACKAGE_PIN J1 [get_ports {dly_data[4]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
set_property PACKAGE_PIN J3 [get_ports {dly_data[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
set_property PACKAGE_PIN J4 [get_ports {dly_data[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
set_property PACKAGE_PIN J5 [get_ports {dly_data[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
set_property PACKAGE_PIN J6 [get_ports {dly_data[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {set}]
set_property PACKAGE_PIN L6 [get_ports {set}]
set_property IOSTANDARD LVCMOS15 [get_ports {ld}]
set_property PACKAGE_PIN L7 [get_ports {ld}]
# input rst, // reset
# input refclk, // 200MHz/300MHz for delay calibration
# input clk_in,
# input set,
# input ld_dly_data,
# input ld_dly_tri,
# input [7:0] dly_data,
# input [3:0] data_in,
# input [3:0] tri_in,
# inout dqs,
# inout ndqs,
# output dqs_received,
# output dly_ready,
# input dqs_tri_a,
# output dqs_tri
#set_property PACKAGE_PIN A1 [get_ports {COUNT[2]}]
#set_property PACKAGE_PIN B2 [get_ports {COUNT[1]}]
#set_property PACKAGE_PIN C2 [get_ports {COUNT[0]}]
#set_property PULLUP true [get_ports {COUNT[3]}]
#set_property PULLUP true [get_ports {COUNT[2]}]
#set_property PULLUP true [get_ports {COUNT[1]}]
#set_property PULLUP true [get_ports {COUNT[0]}]
#set_property PACKAGE_PIN A4 [get_ports ENABLE]
#set_property PACKAGE_PIN B4 [get_ports RESET]
#set_property PACKAGE_PIN C1 [get_ports CLK]
#set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets CLK_IBUF]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[3]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[2]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[1]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[0]}]
#set_property IOSTANDARD LVCMOS18 [get_ports ENABLE]
#set_property IOSTANDARD LVCMOS18 [get_ports RESET]
#set_property IOSTANDARD LVCMOS18 [get_ports CLK]
set_property INTERNAL_VREF 0.750 [get_iobanks 34]
set_property CFGBVS GND [current_design]
set_property CONFIG_VOLTAGE 1.8 [current_design]
#ERROR: [Place 30-574] Poor placement for routing between an IO pin and BUFG. If this sub optimal condition is acceptable
# for this design, you may use the CLOCK_DEDICATED_ROUTE constraint in the .xdc file to demote this message to a WARNING.
# However, the use of this override is highly discouraged. These examples can be used directly in the .xdc file to override
# this clock rule.
# < set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF] >
# clk_ref_in_IBUF_inst (IBUF.O) is locked to IOB_X1Y123
# ref_clk_i (BUFG.I) is provisionally placed by clockplacer on BUFGCTRL_X0Y31
# Resolution: Poor placement of an IO pin and a BUFG has resulted in the router using a non-dedicated path between the two.
# There are several things that could trigger this DRC, each of which can cause unpredictable clock insertion delays that
# result in poor timing. This DRC could be caused by any of the following: (a) a clock port was placed on a pin that is
# not a CCIO-pin (b)the BUFG has not been placed in the same half of the device or SLR as the CCIO-pin (c) a single ended
# clock has been placed on the N-Side of a differential pair CCIO-pin.
# set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF]
memctrl/phy/test_dqs04.v
deleted
100644 → 0
View file @
466a4a4e
/*******************************************************************************
* Module: test_dqs04
* Date:2014-04-26
* Author: Andrey Filippov
* Description: Testing DQS implementation
*
* Copyright (c) 2014 Elphel, Inc.
* test_dqs04.v is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* test_dqs04.v is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> .
*******************************************************************************/
`timescale
1
ns
/
1
ps
module
test_dqs04
(
input
dqs_data
,
inout
dqs
,
inout
ndqs
,
input
clk_in
,
input
clk_ref_in
,
input
rst
,
output
dqs_received
,
// input dqs_tri,
output
dly_ready
,
input
[
4
:
0
]
dly_data
,
input
set
,
input
ld
)
;
wire
clk
,
clk_div
,
clk_ref
;
wire
dqs_data_dly
;
wire
dly_ready_0
;
assign
dly_ready
=
dly_ready_0
&&
dqs_data
;
wire
d_ser
;
wire
dqs_tri1
;
BUFR
#(
.
BUFR_DIVIDE
(
"2"
))
clk_div_i
(
.
I
(
clk_in
)
,.
O
(
clk_div
)
,.
CLR
(
rst
)
,
.
CE
(
1'b1
))
;
BUFR
#(
.
BUFR_DIVIDE
(
"BYPASS"
))
clk_i
(
.
I
(
clk_in
)
,.
O
(
clk
)
,
.
CLR
(
1'b0
)
,.
CE
(
1'b1
))
;
BUFG
ref_clk_i
(
.
I
(
clk_ref_in
)
,.
O
(
clk_ref
))
;
OSERDESE2
#(
.
DATA_RATE_OQ
(
"DDR"
)
,
.
DATA_RATE_TQ
(
"DDR"
)
,
.
DATA_WIDTH
(
4
)
,
.
INIT_OQ
(
1'b0
)
,
.
INIT_TQ
(
1'b0
)
,
.
SERDES_MODE
(
"MASTER"
)
,
.
SRVAL_OQ
(
1'b0
)
,
.
SRVAL_TQ
(
1'b0
)
,
.
TRISTATE_WIDTH
(
4
)
,
.
TBYTE_CTL
(
"FALSE"
)
,
.
TBYTE_SRC
(
"FALSE"
)
)
oserdes_i
(
.
OFB
(
d_ser
)
,
.
OQ
()
,
// dout_iob),
.
SHIFTOUT1
()
,
.
SHIFTOUT2
()
,
.
TFB
()
,
.
TQ
(
dqs_tri1
)
,
.
CLK
(
clk
)
,
.
CLKDIV
(
clk_div
)
,
.
D1
(
dly_data
[
0
])
,
.
D2
(
dly_data
[
1
])
,
.
D3
(
dly_data
[
2
])
,
.
D4
(
dly_data
[
3
])
,
.
D5
()
,
.
D6
()
,
.
D7
()
,
.
D8
()
,
.
OCE
(
1'b1
)
,
.
RST
(
rst
)
,
.
SHIFTIN1
()
,
.
SHIFTIN2
()
,
.
T1
(
dly_data
[
4
])
,
.
T2
(
dly_data
[
4
])
,
.
T3
(
dly_data
[
4
])
,
.
T4
(
dly_data
[
4
])
,
.
TCE
(
1'b1
)
,
.
TBYTEOUT
()
,
.
TBYTEIN
()
)
;
idelay_ctrl
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
)
idelay_ctrl_i
(
.
refclk
(
clk_ref
)
,
.
rst
(
rst
)
,
.
rdy
(
dly_ready_0
)
)
;
odelay_pipe
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
,
.
DELAY_VALUE
(
0
)
,
.
REFCLK_FREQUENCY
(
300.0
)
,
.
HIGH_PERFORMANCE_MODE
(
"FALSE"
)
)
dqs_data_dly_i
(
.
clk
(
clk_div
)
,
.
rst
(
rst
)
,
.
set
(
set
)
,
.
ld
(
ld
)
,
.
delay
(
dly_data
)
,
.
data_in
(
d_ser
)
,
//dqs_data),
.
data_out
(
dqs_data_dly
)
)
;
IOBUFDS
#(
.
DQS_BIAS
(
"FALSE"
)
,
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"DEFAULT"
)
,
.
SLEW
(
"SLOW"
)
)
iobufs_dqs_i
(
.
O
(
dqs_received
)
,
.
IO
(
dqs
)
,
.
IOB
(
ndqs
)
,
.
I
(
dqs_data_dly
)
,
//dqs_data),
.
T
(
dqs_tri1
))
;
endmodule
memctrl/phy/test_dqs04_placement.xdc
deleted
100644 → 0
View file @
466a4a4e
set_property PACKAGE_PIN N7 [get_ports {dqs}]
set_property SLEW FAST [get_ports {dqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {dqs}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs}]
set_property PACKAGE_PIN N6 [get_ports {ndqs}]
set_property SLEW FAST [get_ports {ndqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {ndqs}]
# input dqs_data,
# inout dqs,
# inout ndqs,
# output dqs_received,
# input dqs_tri
#set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
#set_property IOSTANDARD LVCMOS15 [get_ports {refclk}]
#set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
#set_property IOSTANDARD LVCMOS15 [get_ports {set}]
#set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_data}]
#set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_tri}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[7]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[6]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[5]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[0]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_received}]
set_property PACKAGE_PIN K4 [get_ports {dqs_received}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_data}]
set_property PACKAGE_PIN K6 [get_ports {dqs_data}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs_date}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_tri}]
set_property PACKAGE_PIN K7 [get_ports {dqs_tri}]
# input dqs_data,
# inout dqs,
# inout ndqs,
# output dqs_received,
# input dqs_tri,
set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
set_property PACKAGE_PIN M5 [get_ports {clk_in}]
set_property IOSTANDARD LVCMOS15 [get_ports {clk_ref_in}]
set_property PACKAGE_PIN L4 [get_ports {clk_ref_in}]
set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
set_property PACKAGE_PIN L5 [get_ports {rst}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
set_property PACKAGE_PIN M2 [get_ports {dly_ready}]
# input clk_in,
# input clk_ref_in,
# input rst,
# output dly_ready
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
set_property PACKAGE_PIN J1 [get_ports {dly_data[4]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
set_property PACKAGE_PIN J3 [get_ports {dly_data[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
set_property PACKAGE_PIN J4 [get_ports {dly_data[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
set_property PACKAGE_PIN J5 [get_ports {dly_data[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
set_property PACKAGE_PIN J6 [get_ports {dly_data[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {set}]
set_property PACKAGE_PIN L6 [get_ports {set}]
set_property IOSTANDARD LVCMOS15 [get_ports {ld}]
set_property PACKAGE_PIN L7 [get_ports {ld}]
# input rst, // reset
# input refclk, // 200MHz/300MHz for delay calibration
# input clk_in,
# input set,
# input ld_dly_data,
# input ld_dly_tri,
# input [7:0] dly_data,
# input [3:0] data_in,
# input [3:0] tri_in,
# inout dqs,
# inout ndqs,
# output dqs_received,
# output dly_ready,
# input dqs_tri_a,
# output dqs_tri
#set_property PACKAGE_PIN A1 [get_ports {COUNT[2]}]
#set_property PACKAGE_PIN B2 [get_ports {COUNT[1]}]
#set_property PACKAGE_PIN C2 [get_ports {COUNT[0]}]
#set_property PULLUP true [get_ports {COUNT[3]}]
#set_property PULLUP true [get_ports {COUNT[2]}]
#set_property PULLUP true [get_ports {COUNT[1]}]
#set_property PULLUP true [get_ports {COUNT[0]}]
#set_property PACKAGE_PIN A4 [get_ports ENABLE]
#set_property PACKAGE_PIN B4 [get_ports RESET]
#set_property PACKAGE_PIN C1 [get_ports CLK]
#set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets CLK_IBUF]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[3]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[2]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[1]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[0]}]
#set_property IOSTANDARD LVCMOS18 [get_ports ENABLE]
#set_property IOSTANDARD LVCMOS18 [get_ports RESET]
#set_property IOSTANDARD LVCMOS18 [get_ports CLK]
set_property INTERNAL_VREF 0.750 [get_iobanks 34]
set_property CFGBVS GND [current_design]
set_property CONFIG_VOLTAGE 1.8 [current_design]
#ERROR: [Place 30-574] Poor placement for routing between an IO pin and BUFG. If this sub optimal condition is acceptable
# for this design, you may use the CLOCK_DEDICATED_ROUTE constraint in the .xdc file to demote this message to a WARNING.
# However, the use of this override is highly discouraged. These examples can be used directly in the .xdc file to override
# this clock rule.
# < set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF] >
# clk_ref_in_IBUF_inst (IBUF.O) is locked to IOB_X1Y123
# ref_clk_i (BUFG.I) is provisionally placed by clockplacer on BUFGCTRL_X0Y31
# Resolution: Poor placement of an IO pin and a BUFG has resulted in the router using a non-dedicated path between the two.
# There are several things that could trigger this DRC, each of which can cause unpredictable clock insertion delays that
# result in poor timing. This DRC could be caused by any of the following: (a) a clock port was placed on a pin that is
# not a CCIO-pin (b)the BUFG has not been placed in the same half of the device or SLR as the CCIO-pin (c) a single ended
# clock has been placed on the N-Side of a differential pair CCIO-pin.
# set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF]
memctrl/phy/test_dqs05.v
deleted
100644 → 0
View file @
466a4a4e
/*******************************************************************************
* Module: test_dqs05
* Date:2014-04-26
* Author: Andrey Filippov
* Description: Testing DQS implementation
*
* Copyright (c) 2014 Elphel, Inc.
* test_dqs05.v is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* test_dqs05.v is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> .
*******************************************************************************/
`timescale
1
ns
/
1
ps
module
test_dqs05
(
input
dqs_data
,
inout
dqs
,
inout
ndqs
,
input
clk_in
,
input
clk_ref_in
,
input
rst
,
output
dqs_received
,
input
dqs_tri
,
output
dly_ready
,
input
[
4
:
0
]
dly_data
,
input
set
,
input
ld
,
input
ldt
)
;
wire
clk
,
clk_div
,
clk_ref
;
wire
dqs_data_dly
;
wire
dly_ready_0
;
assign
dly_ready
=
dly_ready_0
&&
dqs_data
;
wire
d_ser
;
wire
dqs_tri1
;
//wire d_tri;
BUFR
#(
.
BUFR_DIVIDE
(
"2"
))
clk_div_i
(
.
I
(
clk_in
)
,.
O
(
clk_div
)
,.
CLR
(
rst
)
,
.
CE
(
1'b1
))
;
BUFR
#(
.
BUFR_DIVIDE
(
"BYPASS"
))
clk_i
(
.
I
(
clk_in
)
,.
O
(
clk
)
,
.
CLR
(
1'b0
)
,.
CE
(
1'b1
))
;
BUFG
ref_clk_i
(
.
I
(
clk_ref_in
)
,.
O
(
clk_ref
))
;
OSERDESE2
#(
.
DATA_RATE_OQ
(
"DDR"
)
,
// .DATA_RATE_TQ ("DDR"),
.
DATA_RATE_TQ
(
"BUF"
)
,
.
DATA_WIDTH
(
4
)
,
.
INIT_OQ
(
1'b0
)
,
.
INIT_TQ
(
1'b0
)
,
.
SERDES_MODE
(
"MASTER"
)
,
.
SRVAL_OQ
(
1'b0
)
,
.
SRVAL_TQ
(
1'b0
)
,
.
TRISTATE_WIDTH
(
1
)
,
.
TBYTE_CTL
(
"FALSE"
)
,
.
TBYTE_SRC
(
"FALSE"
)
)
oserdes_i
(
.
OFB
(
d_ser
)
,
.
OQ
()
,
.
SHIFTOUT1
()
,
.
SHIFTOUT2
()
,
.
TFB
()
,
// .TFB (d_tri),
// .TQ (dqs_tri1),
.
TQ
()
,
.
CLK
(
clk
)
,
.
CLKDIV
(
clk_div
)
,
.
D1
(
dly_data
[
0
])
,
.
D2
(
dly_data
[
1
])
,
.
D3
(
dly_data
[
2
])
,
.
D4
(
dly_data
[
3
])
,
.
D5
()
,
.
D6
()
,
.
D7
()
,
.
D8
()
,
.
OCE
(
1'b1
)
,
.
RST
(
rst
)
,
.
SHIFTIN1
()
,
.
SHIFTIN2
()
,
// .T1 (dly_data[4]),
// .T2 (dly_data[4]),
// .T3 (dly_data[4]),
// .T4 (dly_data[4]),
.
T1
()
,
.
T2
()
,
.
T3
()
,
.
T4
()
,
// .TCE (1'b1),
.
TCE
()
,
.
TBYTEOUT
()
,
.
TBYTEIN
()
)
;
idelay_ctrl
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
)
idelay_ctrl_i
(
.
refclk
(
clk_ref
)
,
.
rst
(
rst
)
,
.
rdy
(
dly_ready_0
)
)
;
odelay_pipe
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
,
.
DELAY_VALUE
(
0
)
,
.
REFCLK_FREQUENCY
(
300.0
)
,
.
HIGH_PERFORMANCE_MODE
(
"FALSE"
)
)
dqs_data_dly_i
(
.
clk
(
clk_div
)
,
.
rst
(
rst
)
,
.
set
(
set
)
,
.
ld
(
ld
)
,
.
delay
(
dly_data
)
,
.
data_in
(
d_ser
)
,
//dqs_data),
.
data_out
(
dqs_data_dly
)
)
;
odelay_pipe
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
,
.
DELAY_VALUE
(
0
)
,
.
REFCLK_FREQUENCY
(
300.0
)
,
.
HIGH_PERFORMANCE_MODE
(
"FALSE"
)
)
dqs_tri_dly_i
(
.
clk
(
clk_div
)
,
.
rst
(
rst
)
,
.
set
(
set
)
,
.
ld
(
ldt
)
,
.
delay
(
dly_data
)
,
.
data_in
(
dqs_tri
)
,
//d_tri), //dqs_data),
.
data_out
(
dqs_tri1
)
)
;
IOBUFDS
#(
.
DQS_BIAS
(
"FALSE"
)
,
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"DEFAULT"
)
,
.
SLEW
(
"SLOW"
)
)
iobufs_dqs_i
(
.
O
(
dqs_received
)
,
.
IO
(
dqs
)
,
.
IOB
(
ndqs
)
,
.
I
(
dqs_data_dly
)
,
//dqs_data),
.
T
(
dqs_tri1
))
;
endmodule
/*
Does not work.
http://forums.xilinx.com/t5/7-Series-FPGAs/How-to-use-2-odelya-on-one-IOB-on-V7/m-p/361317#M2312
There is only one ODELAY per IOI/IOB, therefore to use a second ODELAY you would require the use of a second IOI/IOB.
Secondly the DATAOUT of an ODELAY can ONLY be connected to OBUF (or IOBUF), it will not route to a T port of an IOBUF.
Thirdly when you are using an OSERDES followed by an IOBUFT the T port needs to be driven from the TQ of the OSERDES.
What you can do is take the DATAOUT of the Tristate ODELAY and drive an IOBUFT and then use the input side of the buffer
drive the T1 port of the OSERDES and connect the TQ port of the data IOBUFT. The obvious down side to this is the use of
the second IOB/IOI and the routing delay from IOB to the T1 port of the OSERDES.
Another option would be to use the IDELAY in the data IOB/IOI using the DATAIN port and the DELAY_src=> "DATAIN", you can
LOC the IDELAY to the same site (tools won’t automatically choose this location). You will still have the routing delays
as the output of the IDELAY goes into Fabric to get back to the OSERDES T1 port but it only uses data IOB/IOI.
*/
memctrl/phy/test_dqs05_placement.xdc
deleted
100644 → 0
View file @
466a4a4e
set_property PACKAGE_PIN N7 [get_ports {dqs}]
set_property SLEW FAST [get_ports {dqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {dqs}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs}]
set_property PACKAGE_PIN N6 [get_ports {ndqs}]
set_property SLEW FAST [get_ports {ndqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {ndqs}]
# input dqs_data,
# inout dqs,
# inout ndqs,
# output dqs_received,
# input dqs_tri
#set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
#set_property IOSTANDARD LVCMOS15 [get_ports {refclk}]
#set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
#set_property IOSTANDARD LVCMOS15 [get_ports {set}]
#set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_data}]
#set_property IOSTANDARD LVCMOS15 [get_ports {ld_dly_tri}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[7]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[6]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[5]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {data_in[0]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[3]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[2]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[1]}]
#set_property IOSTANDARD LVCMOS15 [get_ports {tri_in[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_received}]
set_property PACKAGE_PIN K4 [get_ports {dqs_received}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_data}]
set_property PACKAGE_PIN K6 [get_ports {dqs_data}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs_date}]
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_tri}]
set_property PACKAGE_PIN K7 [get_ports {dqs_tri}]
# input dqs_data,
# inout dqs,
# inout ndqs,
# output dqs_received,
# input dqs_tri,
set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
set_property PACKAGE_PIN M5 [get_ports {clk_in}]
set_property IOSTANDARD LVCMOS15 [get_ports {clk_ref_in}]
set_property PACKAGE_PIN L4 [get_ports {clk_ref_in}]
set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
set_property PACKAGE_PIN L5 [get_ports {rst}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
set_property PACKAGE_PIN M2 [get_ports {dly_ready}]
# input clk_in,
# input clk_ref_in,
# input rst,
# output dly_ready
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
set_property PACKAGE_PIN J1 [get_ports {dly_data[4]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
set_property PACKAGE_PIN J3 [get_ports {dly_data[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
set_property PACKAGE_PIN J4 [get_ports {dly_data[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
set_property PACKAGE_PIN J5 [get_ports {dly_data[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
set_property PACKAGE_PIN J6 [get_ports {dly_data[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {set}]
set_property PACKAGE_PIN L6 [get_ports {set}]
set_property IOSTANDARD LVCMOS15 [get_ports {ld}]
set_property PACKAGE_PIN L7 [get_ports {ld}]
set_property IOSTANDARD LVCMOS15 [get_ports {ldt}]
set_property PACKAGE_PIN M3 [get_ports {ldt}]
# input rst, // reset
# input refclk, // 200MHz/300MHz for delay calibration
# input clk_in,
# input set,
# input ld_dly_data,
# input ld_dly_tri,
# input [7:0] dly_data,
# input [3:0] data_in,
# input [3:0] tri_in,
# inout dqs,
# inout ndqs,
# output dqs_received,
# output dly_ready,
# input dqs_tri_a,
# output dqs_tri
#set_property PACKAGE_PIN A1 [get_ports {COUNT[2]}]
#set_property PACKAGE_PIN B2 [get_ports {COUNT[1]}]
#set_property PACKAGE_PIN C2 [get_ports {COUNT[0]}]
#set_property PULLUP true [get_ports {COUNT[3]}]
#set_property PULLUP true [get_ports {COUNT[2]}]
#set_property PULLUP true [get_ports {COUNT[1]}]
#set_property PULLUP true [get_ports {COUNT[0]}]
#set_property PACKAGE_PIN A4 [get_ports ENABLE]
#set_property PACKAGE_PIN B4 [get_ports RESET]
#set_property PACKAGE_PIN C1 [get_ports CLK]
#set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets CLK_IBUF]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[3]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[2]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[1]}]
#set_property IOSTANDARD LVCMOS18 [get_ports {COUNT[0]}]
#set_property IOSTANDARD LVCMOS18 [get_ports ENABLE]
#set_property IOSTANDARD LVCMOS18 [get_ports RESET]
#set_property IOSTANDARD LVCMOS18 [get_ports CLK]
set_property INTERNAL_VREF 0.750 [get_iobanks 34]
set_property CFGBVS GND [current_design]
set_property CONFIG_VOLTAGE 1.8 [current_design]
#ERROR: [Place 30-574] Poor placement for routing between an IO pin and BUFG. If this sub optimal condition is acceptable
# for this design, you may use the CLOCK_DEDICATED_ROUTE constraint in the .xdc file to demote this message to a WARNING.
# However, the use of this override is highly discouraged. These examples can be used directly in the .xdc file to override
# this clock rule.
# < set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF] >
# clk_ref_in_IBUF_inst (IBUF.O) is locked to IOB_X1Y123
# ref_clk_i (BUFG.I) is provisionally placed by clockplacer on BUFGCTRL_X0Y31
# Resolution: Poor placement of an IO pin and a BUFG has resulted in the router using a non-dedicated path between the two.
# There are several things that could trigger this DRC, each of which can cause unpredictable clock insertion delays that
# result in poor timing. This DRC could be caused by any of the following: (a) a clock port was placed on a pin that is
# not a CCIO-pin (b)the BUFG has not been placed in the same half of the device or SLR as the CCIO-pin (c) a single ended
# clock has been placed on the N-Side of a differential pair CCIO-pin.
# set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF]
memctrl/phy/test_dqs06.v
deleted
100644 → 0
View file @
466a4a4e
/*******************************************************************************
* Module: test_dqs06
* Date:2014-04-26
* Author: Andrey Filippov
* Description: Testing DQS implementation
*
* Copyright (c) 2014 Elphel, Inc.
* test_dqs06.v is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* test_dqs06.v is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> .
*******************************************************************************/
`timescale
1
ns
/
1
ps
module
test_dqs06
(
inout
dqs
,
inout
ndqs
,
output
dqs_received
,
input
clk_in
,
input
clk_ref_in
,
input
rst
,
input
dci_disable
,
input
[
7
:
0
]
dly_data
,
input
set
,
input
ld
,
output
dly_ready
)
;
wire
clk
,
clk_div
,
clk_ref
;
BUFR
#(
.
BUFR_DIVIDE
(
"2"
))
clk_div_i
(
.
I
(
clk_in
)
,.
O
(
clk_div
)
,.
CLR
(
rst
)
,
.
CE
(
1'b1
))
;
BUFR
#(
.
BUFR_DIVIDE
(
"BYPASS"
))
clk_i
(
.
I
(
clk_in
)
,.
O
(
clk
)
,
.
CLR
(
1'b0
)
,.
CE
(
1'b1
))
;
BUFG
ref_clk_i
(
.
I
(
clk_ref_in
)
,.
O
(
clk_ref
))
;
idelay_ctrl
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
)
idelay_ctrl_i
(
.
refclk
(
clk_ref
)
,
.
rst
(
rst
)
,
.
rdy
(
dly_ready
)
)
;
dqs_single
#(
.
IBUF_LOW_PWR
(
"FALSE"
)
,
.
IOSTANDARD
(
"DIFF_SSTL15_T_DCI"
)
,
.
SLEW
(
"FAST"
)
,
.
REFCLK_FREQUENCY
(
300.0
)
)
dqs_single_i
(
.
dqs
(
dqs
)
,
.
ndqs
(
ndqs
)
,
.
clk
(
clk
)
,
.
clk_div
(
clk_div
)
,
.
rst
(
rst
)
,
.
dqs_received_dly
(
dqs_received
)
,
.
dci_disable
(
dci_disable
)
,
// disable DCI termination during writes and idle
.
dly_data
(
dly_data
[
7
:
0
])
,
.
din
(
dly_data
[
3
:
0
])
,
.
tin
(
{
4
{
dly_data
[
4
]
}}
)
,
.
set_odelay
(
set
)
,
.
ld_odelay
(
ld
)
,
.
set_idelay
(
set
)
,
.
ld_idelay
(
ld
)
)
;
endmodule
memctrl/phy/test_dqs06_placement.xdc
deleted
100644 → 0
View file @
466a4a4e
# inout dqs,
set_property PACKAGE_PIN N7 [get_ports {dqs}]
set_property SLEW FAST [get_ports {dqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {dqs}]
# inout ndqs,
set_property PACKAGE_PIN N6 [get_ports {ndqs}]
set_property SLEW FAST [get_ports {ndqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {ndqs}]
# output dqs_received,
set_property IOSTANDARD LVCMOS15 [get_ports {dqs_received}]
set_property PACKAGE_PIN K4 [get_ports {dqs_received}]
# input clk_in,
set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
set_property PACKAGE_PIN M5 [get_ports {clk_in}]
# input clk_ref_in,
set_property IOSTANDARD LVCMOS15 [get_ports {clk_ref_in}]
set_property PACKAGE_PIN L4 [get_ports {clk_ref_in}]
# input rst,
set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
set_property PACKAGE_PIN L5 [get_ports {rst}]
# input dci_disable,
set_property IOSTANDARD LVCMOS15 [get_ports {dci_disable}]
set_property PACKAGE_PIN K6 [get_ports {dci_disable}]
# input [7:0] dly_data,
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[7]}]
set_property PACKAGE_PIN H1 [get_ports {dly_data[7]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[6]}]
set_property PACKAGE_PIN H2 [get_ports {dly_data[6]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[5]}]
set_property PACKAGE_PIN H3 [get_ports {dly_data[5]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
set_property PACKAGE_PIN J1 [get_ports {dly_data[4]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
set_property PACKAGE_PIN J3 [get_ports {dly_data[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
set_property PACKAGE_PIN J4 [get_ports {dly_data[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
set_property PACKAGE_PIN J5 [get_ports {dly_data[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
set_property PACKAGE_PIN J6 [get_ports {dly_data[0]}]
# input set,
set_property IOSTANDARD LVCMOS15 [get_ports {set}]
set_property PACKAGE_PIN L6 [get_ports {set}]
# input ld,
set_property IOSTANDARD LVCMOS15 [get_ports {ld}]
set_property PACKAGE_PIN L7 [get_ports {ld}]
# output dly_ready
set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
set_property PACKAGE_PIN M2 [get_ports {dly_ready}]
#set_property IOSTANDARD LVCMOS15 [get_ports {dqs_tri}]
#set_property PACKAGE_PIN K7 [get_ports {dqs_tri}]
set_property INTERNAL_VREF 0.750 [get_iobanks 34]
set_property CFGBVS GND [current_design]
set_property CONFIG_VOLTAGE 1.8 [current_design]
#ERROR: [Place 30-574] Poor placement for routing between an IO pin and BUFG. If this sub optimal condition is acceptable
# for this design, you may use the CLOCK_DEDICATED_ROUTE constraint in the .xdc file to demote this message to a WARNING.
# However, the use of this override is highly discouraged. These examples can be used directly in the .xdc file to override
# this clock rule.
# < set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF] >
# clk_ref_in_IBUF_inst (IBUF.O) is locked to IOB_X1Y123
# ref_clk_i (BUFG.I) is provisionally placed by clockplacer on BUFGCTRL_X0Y31
# Resolution: Poor placement of an IO pin and a BUFG has resulted in the router using a non-dedicated path between the two.
# There are several things that could trigger this DRC, each of which can cause unpredictable clock insertion delays that
# result in poor timing. This DRC could be caused by any of the following: (a) a clock port was placed on a pin that is
# not a CCIO-pin (b)the BUFG has not been placed in the same half of the device or SLR as the CCIO-pin (c) a single ended
# clock has been placed on the N-Side of a differential pair CCIO-pin.
# set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF]
memctrl/phy/test_dqs07.v
deleted
100644 → 0
View file @
466a4a4e
/*******************************************************************************
* Module: test_dqs07
* Date:2014-04-26
* Author: Andrey Filippov
* Description: Testing DQS implementation
*
* Copyright (c) 2014 Elphel, Inc.
* test_dqs07.v is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* test_dqs07.v is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> .
*******************************************************************************/
`timescale
1
ns
/
1
ps
module
test_dqs07
(
inout
dqs
,
inout
ndqs
,
// output dqs_received,
input
clk_in
,
input
clk_ref_in
,
input
rst
,
input
dci_disable_dqs
,
input
[
7
:
0
]
dly_data
,
input
set
,
input
ld
,
output
dly_ready
,
inout
dq
,
output
[
3
:
0
]
dout
,
input
dci_disable_dq
)
;
wire
clk
,
clk_div
,
clk_ref
;
(
*
CLOCK_DEDICATED_ROUTE
=
"FALSE"
*
)
wire
dqs_read
;
// does not seem to work
wire
iclk
;
BUFR
#(
.
BUFR_DIVIDE
(
"2"
))
clk_div_i
(
.
I
(
clk_in
)
,.
O
(
clk_div
)
,.
CLR
(
rst
)
,
.
CE
(
1'b1
))
;
BUFR
#(
.
BUFR_DIVIDE
(
"BYPASS"
))
clk_i
(
.
I
(
clk_in
)
,.
O
(
clk
)
,
.
CLR
(
1'b0
)
,.
CE
(
1'b1
))
;
BUFG
ref_clk_i
(
.
I
(
clk_ref_in
)
,.
O
(
clk_ref
))
;
//set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets dqs_single_i/dqs_in_dly_i/dqs_read]
//BUFR iclk_i (.O(iclk),.I(dqs_read), .CLR(1'b0),.CE(1'b1)); // OK, works with constraint above
BUFIO
iclk_i
(
.
O
(
iclk
)
,.
I
(
dqs_read
))
;
// Fails even with the constraint
idelay_ctrl
#
(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
)
idelay_ctrl_i
(
.
refclk
(
clk_ref
)
,
.
rst
(
rst
)
,
.
rdy
(
dly_ready
)
)
;
dqs_single
#(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
,
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"DIFF_SSTL15_T_DCI"
)
,
.
SLEW
(
"FAST"
)
,
.
REFCLK_FREQUENCY
(
300.0
)
,
.
HIGH_PERFORMANCE_MODE
(
"FALSE"
)
)
dqs_single_i
(
.
dqs
(
dqs
)
,
.
ndqs
(
ndqs
)
,
.
clk
(
clk
)
,
.
clk_div
(
clk_div
)
,
.
rst
(
rst
)
,
.
dqs_received_dly
(
dqs_read
)
,
.
dci_disable
(
dci_disable_dqs
)
,
// disable DCI termination during writes and idle
.
dly_data
(
dly_data
[
7
:
0
])
,
.
din
(
dly_data
[
3
:
0
])
,
.
tin
(
{
4
{
dly_data
[
4
]
}}
)
,
.
set_odelay
(
set
)
,
.
ld_odelay
(
ld
)
,
.
set_idelay
(
set
)
,
.
ld_idelay
(
ld
)
)
;
dq_single
#(
.
IODELAY_GRP
(
"IODELAY_MEMORY"
)
,
.
IBUF_LOW_PWR
(
"TRUE"
)
,
.
IOSTANDARD
(
"SSTL15_T_DCI"
)
,
.
SLEW
(
"FAST"
)
,
.
REFCLK_FREQUENCY
(
300.0
)
,
.
HIGH_PERFORMANCE_MODE
(
"FALSE"
)
)
dq_single_i
(
.
dq
(
dq
)
,
.
iclk
(
iclk
)
,
// source-synchronous clock (BUFR from DQS)
.
clk
(
clk
)
,
// free-running system clock, same frequency as iclk (shared for R/W)
.
clk_div
(
clk_div
)
,
// free-running half clk frequency, front aligned to clk (shared for R/W)
.
inv_clk_div
(
1'b0
)
,
// invert clk_div for R channel (clk_div is shared between R and W)
.
rst
(
rst
)
,
.
dci_disable
(
dci_disable_dq
)
,
// disable DCI termination during writes and idle
.
dly_data
(
dly_data
[
7
:
0
])
,
// delay value (3 LSB - fine delay)
.
din
(
dly_data
[
3
:
0
])
,
// parallel data to be sent out
.
tin
(
{
4
{
dly_data
[
4
]
}}
)
,
// tristate for data out (sent out earlier than data!)
.
dout
(
dout
[
3
:
0
])
,
// parallel data received from DDR3 memory
.
set_odelay
(
set
)
,
// clk_div synchronous load odelay value from dly_data
.
ld_odelay
(
ld
)
,
// clk_div synchronous set odealy value from loaded
.
set_idelay
(
set
)
,
// clk_div synchronous load idelay value from dly_data
.
ld_idelay
(
ld
)
// clk_div synchronous set idealy value from loaded
)
;
endmodule
memctrl/phy/test_dqs07_placement.xdc
deleted
100644 → 0
View file @
466a4a4e
# inout dqs,
set_property PACKAGE_PIN N7 [get_ports {dqs}]
set_property SLEW FAST [get_ports {dqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {dqs}]
# inout ndqs,
set_property PACKAGE_PIN N6 [get_ports {ndqs}]
set_property SLEW FAST [get_ports {ndqs}]
set_property IOSTANDARD DIFF_SSTL15_T_DCI [get_ports {ndqs}]
# input clk_in,
set_property IOSTANDARD LVCMOS15 [get_ports {clk_in}]
set_property PACKAGE_PIN M5 [get_ports {clk_in}]
# input clk_ref_in,
set_property IOSTANDARD LVCMOS15 [get_ports {clk_ref_in}]
set_property PACKAGE_PIN L4 [get_ports {clk_ref_in}]
# input rst,
set_property IOSTANDARD LVCMOS15 [get_ports {rst}]
set_property PACKAGE_PIN L5 [get_ports {rst}]
# input dci_disable,
set_property IOSTANDARD LVCMOS15 [get_ports {dci_disable_dqs}]
set_property PACKAGE_PIN K6 [get_ports {dci_disable_dqs}]
# input [7:0] dly_data,
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[7]}]
set_property PACKAGE_PIN H1 [get_ports {dly_data[7]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[6]}]
set_property PACKAGE_PIN H2 [get_ports {dly_data[6]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[5]}]
set_property PACKAGE_PIN H3 [get_ports {dly_data[5]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[4]}]
set_property PACKAGE_PIN J1 [get_ports {dly_data[4]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[3]}]
set_property PACKAGE_PIN J3 [get_ports {dly_data[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[2]}]
set_property PACKAGE_PIN J4 [get_ports {dly_data[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[1]}]
set_property PACKAGE_PIN J5 [get_ports {dly_data[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dly_data[0]}]
set_property PACKAGE_PIN J6 [get_ports {dly_data[0]}]
# input set,
set_property IOSTANDARD LVCMOS15 [get_ports {set}]
set_property PACKAGE_PIN L6 [get_ports {set}]
# input ld,
set_property IOSTANDARD LVCMOS15 [get_ports {ld}]
set_property PACKAGE_PIN L7 [get_ports {ld}]
# output dly_ready
set_property IOSTANDARD LVCMOS15 [get_ports {dly_ready}]
set_property PACKAGE_PIN M2 [get_ports {dly_ready}]
# inout dq,
set_property IOSTANDARD SSTL15_T_DCI [get_ports {dq}]
set_property PACKAGE_PIN F6 [get_ports {dq}]
# output [3:0] dout,
set_property IOSTANDARD LVCMOS15 [get_ports {dout[3]}]
set_property PACKAGE_PIN K1 [get_ports {dout[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dout[2]}]
set_property PACKAGE_PIN K2 [get_ports {dout[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dout[1]}]
set_property PACKAGE_PIN K3 [get_ports {dout[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {dout[0]}]
set_property PACKAGE_PIN K4 [get_ports {dout[0]}]
# input dci_disable_dq
set_property IOSTANDARD LVCMOS15 [get_ports {dci_disable_dq}]
set_property PACKAGE_PIN K7 [get_ports {dci_disable_dq}]
set_property INTERNAL_VREF 0.750 [get_iobanks 34]
set_property CFGBVS GND [current_design]
set_property CONFIG_VOLTAGE 1.8 [current_design]
#ERROR: [Place 30-574] Poor placement for routing between an IO pin and BUFG. If this sub optimal condition is acceptable
# for this design, you may use the CLOCK_DEDICATED_ROUTE constraint in the .xdc file to demote this message to a WARNING.
# However, the use of this override is highly discouraged. These examples can be used directly in the .xdc file to override
# this clock rule.
# < set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF] >
# clk_ref_in_IBUF_inst (IBUF.O) is locked to IOB_X1Y123
# ref_clk_i (BUFG.I) is provisionally placed by clockplacer on BUFGCTRL_X0Y31
# Resolution: Poor placement of an IO pin and a BUFG has resulted in the router using a non-dedicated path between the two.
# There are several things that could trigger this DRC, each of which can cause unpredictable clock insertion delays that
# result in poor timing. This DRC could be caused by any of the following: (a) a clock port was placed on a pin that is
# not a CCIO-pin (b)the BUFG has not been placed in the same half of the device or SLR as the CCIO-pin (c) a single ended
# clock has been placed on the N-Side of a differential pair CCIO-pin.
#set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_ref_in_IBUF]
#trying to force BUFR to use fabric input
#set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets dqs_single_i/dqs_in_dly_i/dqs_received]
#puts [get_property CLOCK_DEDICATED_ROUTE [get_nets dqs_single_i/dqs_in_dly_i/dqs_received]]
\ No newline at end of file
memctrl/phy/test_phy_top_01.xdc
deleted
100644 → 0
View file @
466a4a4e
This diff is collapsed.
Click to expand it.
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