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
0987c0b8
Commit
0987c0b8
authored
Sep 07, 2017
by
Raimundas Bastys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed reset to asynchronous in file simulation_modules/simul_sensor_spi.v
parent
0639660e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
simul_sensor_spi.v
simulation_modules/simul_sensor_spi.v
+3
-3
No files found.
simulation_modules/simul_sensor_spi.v
View file @
0987c0b8
...
...
@@ -62,7 +62,7 @@ reg [7:0] reg_wr;
assign
pin_spi_out
=
spi_out
;
assign
clk
=
pin_spi_clk
;
assign
reset
=
!
pin_spi_reset
||
!
pin_spi_en
;
assign
reset
=
!
pin_spi_reset
||
!
pin_spi_en
;
//todo: asinchronous
`ifndef
ROOTPATH
`include
"IVERILOG_INCLUDE.v"
// SuppressThisWarning VEditor - maybe not used
...
...
@@ -97,7 +97,7 @@ end
`define
S_FST_RD_A0 8
'
h03
`define
S_FST_RD_D0 8
'
h04
always
@
(
posedge
clk
)
begin
always
@
(
posedge
clk
or
posedge
reset
)
begin
if
(
reset
)
begin
sfst
<=
`S_FST_00000
;
reg_addr
[
6
:
0
]
<=
0
;
...
...
@@ -150,7 +150,7 @@ end else begin
end
//if
end
//always
always
@
(
negedge
clk
)
begin
always
@
(
negedge
clk
or
posedge
reset
)
begin
if
(
reset
)
begin
spi_out
<=
1'b0
;
end
else
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