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
f3df44ab
Commit
f3df44ab
authored
Jul 25, 2015
by
Alexey Grebenkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simulator-dependent defines added
parent
dc5c25e2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
32 deletions
+18
-32
system_defines.vh
system_defines.vh
+12
-0
idelay_fine_pipe.v
wrap/idelay_fine_pipe.v
+2
-8
iserdes_mem.v
wrap/iserdes_mem.v
+1
-8
odelay_fine_pipe.v
wrap/odelay_fine_pipe.v
+2
-8
oserdes_mem.v
wrap/oserdes_mem.v
+1
-8
No files found.
system_defines.vh
View file @
f3df44ab
// This file may be used to define same pre-processor macros to be included into each parsed file
// This file may be used to define same pre-processor macros to be included into each parsed file
`ifndef SYSTEM_DEFINES
`ifndef SYSTEM_DEFINES
`define SYSTEM_DEFINES
`define SYSTEM_DEFINES
// Enviroment-dependent options
`ifdef IVERILOG
`define SIMULATION
`define OPEN_SOURCE_ONLY
`else
`ifdef CVC
`define SIMULATION
`define OPEN_SOURCE_ONLY
`endif // CVC
`endif // IVERILOG
//`define MEMBRIDGE_DEBUG_READ 1
//`define MEMBRIDGE_DEBUG_READ 1
`define use200Mhz 1
`define use200Mhz 1
`define USE_CMD_ENCOD_TILED_32_RD 1
`define USE_CMD_ENCOD_TILED_32_RD 1
...
...
wrap/idelay_fine_pipe.v
View file @
f3df44ab
...
@@ -43,17 +43,11 @@ module idelay_fine_pipe
...
@@ -43,17 +43,11 @@ module idelay_fine_pipe
if
(
rst
)
fdly
<=
DELAY_VALUE
[
2
:
0
]
;
if
(
rst
)
fdly
<=
DELAY_VALUE
[
2
:
0
]
;
else
if
(
set
)
fdly
<=
fdly_pre
;
else
if
(
set
)
fdly
<=
fdly_pre
;
end
end
`ifdef
IVERILOG
`ifdef
SIMULATION
always
@
(
fdly_pre
)
begin
always
@
(
fdly_pre
)
begin
if
(
fdly_pre
>
3'h4
)
$
display
(
"ERROR: fine idelay value should be <5, specified %d @ %t"
,
fdly_pre
,
$
time
)
;
if
(
fdly_pre
>
3'h4
)
$
display
(
"ERROR: fine idelay value should be <5, specified %d @ %t"
,
fdly_pre
,
$
time
)
;
end
end
`else
// IVERILOG
`endif
// SIMULATION
`ifdef
CVC
always
@
(
fdly_pre
)
begin
if
(
fdly_pre
>
3'h4
)
$
display
(
"ERROR: fine idelay value should be <5, specified %d @ %t"
,
fdly_pre
,
$
time
)
;
end
`endif
//CVC
`endif
//IVERILOG
`ifndef
IGNORE_ATTR
`ifndef
IGNORE_ATTR
(
*
IODELAY_GROUP
=
IODELAY_GRP
*
)
(
*
IODELAY_GROUP
=
IODELAY_GRP
*
)
`endif
`endif
...
...
wrap/iserdes_mem.v
View file @
f3df44ab
...
@@ -20,13 +20,6 @@
...
@@ -20,13 +20,6 @@
*******************************************************************************/
*******************************************************************************/
`timescale
1
ns
/
1
ps
`timescale
1
ns
/
1
ps
//`define IVERILOG // uncomment just to chenck syntax (by the editor) in the corresponding branch
//`define IVERILOG // uncomment just to chenck syntax (by the editor) in the corresponding branch
`ifdef
IVERILOG
`define
IVERILOGorCVC
`else
`ifdef
CVC
`define
IVERILOGorCVC
`endif
`endif
module
iserdes_mem
#
module
iserdes_mem
#
(
(
parameter
DYN_CLKDIV_INV_EN
=
"FALSE"
,
parameter
DYN_CLKDIV_INV_EN
=
"FALSE"
,
...
@@ -42,7 +35,7 @@ module iserdes_mem #
...
@@ -42,7 +35,7 @@ module iserdes_mem #
output
[
3
:
0
]
dout
output
[
3
:
0
]
dout
)
;
)
;
`ifndef
IVERILOGorCVC
// Not using simulator - instantiate actual ISERDESE2 (can not be simulated because of encrypted )
`ifndef
OPEN_SOURCE_ONLY
// Not using simulator - instantiate actual ISERDESE2 (can not be simulated because of encrypted )
ISERDESE2
#(
ISERDESE2
#(
.
DATA_RATE
(
"DDR"
)
,
.
DATA_RATE
(
"DDR"
)
,
.
DATA_WIDTH
(
4
)
,
.
DATA_WIDTH
(
4
)
,
...
...
wrap/odelay_fine_pipe.v
View file @
f3df44ab
...
@@ -42,17 +42,11 @@ module odelay_fine_pipe
...
@@ -42,17 +42,11 @@ module odelay_fine_pipe
if
(
rst
)
fdly
<=
DELAY_VALUE
[
2
:
0
]
;
if
(
rst
)
fdly
<=
DELAY_VALUE
[
2
:
0
]
;
else
if
(
set
)
fdly
<=
fdly_pre
;
else
if
(
set
)
fdly
<=
fdly_pre
;
end
end
`ifdef
IVERILOG
`ifdef
SIMULATION
always
@
(
fdly_pre
)
begin
always
@
(
fdly_pre
)
begin
if
(
fdly_pre
>
3'h4
)
$
display
(
"ERROR: fine odelay value should be <5, specified %d @ %t"
,
fdly_pre
,
$
time
)
;
if
(
fdly_pre
>
3'h4
)
$
display
(
"ERROR: fine odelay value should be <5, specified %d @ %t"
,
fdly_pre
,
$
time
)
;
end
end
`else
// IVERILOG
`endif
// SIMULATION
`ifdef
CVC
always
@
(
fdly_pre
)
begin
if
(
fdly_pre
>
3'h4
)
$
display
(
"ERROR: fine odelay value should be <5, specified %d @ %t"
,
fdly_pre
,
$
time
)
;
end
`endif
// CVC
`endif
// IVERILOG
`ifndef
IGNORE_ATTR
`ifndef
IGNORE_ATTR
(
*
IODELAY_GROUP
=
IODELAY_GRP
*
)
(
*
IODELAY_GROUP
=
IODELAY_GRP
*
)
...
...
wrap/oserdes_mem.v
View file @
f3df44ab
...
@@ -20,13 +20,6 @@
...
@@ -20,13 +20,6 @@
*******************************************************************************/
*******************************************************************************/
`timescale
1
ns
/
1
ps
`timescale
1
ns
/
1
ps
//`define IVERILOG // uncomment just to chenck syntax (by the editor) in the corresponding branch
//`define IVERILOG // uncomment just to chenck syntax (by the editor) in the corresponding branch
`ifdef
IVERILOG
`define
IVERILOGorCVC
`else
`ifdef
CVC
`define
IVERILOGorCVC
`endif
`endif
module
oserdes_mem
#(
module
oserdes_mem
#(
parameter
MODE_DDR
=
"TRUE"
parameter
MODE_DDR
=
"TRUE"
)
(
)
(
...
@@ -53,7 +46,7 @@ localparam integer DATA_WIDTH_TRI= (MODE_DDR=="TRUE")?4:1;
...
@@ -53,7 +46,7 @@ localparam integer DATA_WIDTH_TRI= (MODE_DDR=="TRUE")?4:1;
seems to be OK.
seems to be OK.
*/
*/
`ifndef
IVERILOGorCVC
// Not using simulator - instantiate actual ISERDESE2 (can not be simulated because of encrypted )
`ifndef
OPEN_SOURCE_ONLY
// Not using simulator - instantiate actual ISERDESE2 (can not be simulated because of encrypted )
OSERDESE2
#(
OSERDESE2
#(
.
DATA_RATE_OQ
(
DATA_RATE
)
,
.
DATA_RATE_OQ
(
DATA_RATE
)
,
.
DATA_RATE_TQ
(
DATA_RATE
)
,
.
DATA_RATE_TQ
(
DATA_RATE
)
,
...
...
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