Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x353
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
x353
Commits
aafa6d1d
Commit
aafa6d1d
authored
Jul 27, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging simulation
parent
d6e9be6b
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1149 additions
and
667 deletions
+1149
-667
macros353.v
general/macros353.v
+4
-3
sdseq353.v
memctrl353/sdseq353.v
+0
-1
sensorpads353.v
sensor/sensorpads353.v
+9
-9
x353_1.sav
x353_1.sav
+467
-12
x353_1.tf
x353_1.tf
+7
-642
x353_sim_tasks_include.vh
x353_sim_tasks_include.vh
+662
-0
No files found.
general/macros353.v
View file @
aafa6d1d
...
...
@@ -82,7 +82,7 @@ parameter DATA_2DEPTH=(1<<DATA_DEPTH)-1;
assign
QR
=
ram
[
AR
]
;
endmodule
//
Fixing Xilinx SLR16_x
//
Modifying Xilinx SLR16_x to better simulate real hardware
module
SRL16_MOD
#(
parameter
INIT
=
16'h0000
,
parameter
INVERT
=
0
// *_1 - invert
...
...
@@ -100,9 +100,10 @@ module SRL16_MOD #(
wire
clk_
;
wire
[
3
:
0
]
a
=
{
A3
,
A2
,
A1
,
A0
};
assign
Q
=
(
|
data
)
?
((
&
data
)
?
1'b1
:
data
[
a
])
:
1'b0
;
assign
Q
=
(
data
==
16'h0
)
?
1'b0
:
((
data
==
16'hffff
)
?
1'b1
:
data
[
a
])
;
//
assign Q = (data == 16'h0) ? 1'b0 :
//
((data == 16'hffff) ? 1'b1 : data[a]);
assign
clk_
=
INVERT
?
(
~
CLK
)
:
CLK
;
initial
...
...
memctrl353/sdseq353.v
View file @
aafa6d1d
...
...
@@ -186,7 +186,6 @@ module sdseq (clk0, // global clock 75-100MHz (hope to get to 120MHz with Sparta
next
<=
prenext_refr
||
prenext_wr
||
(
!
drun_wr
&&
pre_next_old
)
;
// add m0 and refr here too
decLeft
<=
(
prenext_m1s
||
prenext_m1d
||
prenext_m0
)
;
// add m0 and refr here too
if
(
first
)
left
[
4
:
0
]
<=
(
mode
)
?
5'h14
:
((
param
[
4
:
0
]
==
5'b0
)
?
5'h1f
:
param
[
4
:
0
])
;
///AF2015 - revert: if (first || rst) left[4:0] <= (mode)? 5'h14:((param[4:0]==5'b0)?5'h1f:param[4:0]);
else
if
(
decLeft
)
left
[
4
:
0
]
<=
left
[
4
:
0
]
-
1
;
end
...
...
sensor/sensorpads353.v
View file @
aafa6d1d
x353_1.sav
View file @
aafa6d1d
This diff is collapsed.
Click to expand it.
x353_1.tf
View file @
aafa6d1d
This diff is collapsed.
Click to expand it.
x353_sim_tasks_include.vh
0 → 100644
View file @
aafa6d1d
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