Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
Conv TTL Blocking
Commits
7cc28d23
Commit
7cc28d23
authored
Oct 25, 2012
by
Carlos Gil Soriano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the documentation of SPI module.
parent
518cd18a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2153 additions
and
13 deletions
+2153
-13
clk_fsm.png
hdl/spi_master_multifield/doc/Figures/clk_fsm.png
+0
-0
clk_fsm.svg
hdl/spi_master_multifield/doc/Figures/clk_fsm.svg
+2130
-0
spi_clk_fsm.png
hdl/spi_master_multifield/doc/Figures/spi_clk_fsm.png
+0
-0
text4933-66-0-38-6-8-1-7-99.png
...er_multifield/doc/Figures/text4933-66-0-38-6-8-1-7-99.png
+0
-0
spiSpecs.pdf
hdl/spi_master_multifield/doc/spiSpecs.pdf
+0
-0
spiSpecs.tex
hdl/spi_master_multifield/doc/spiSpecs.tex
+23
-13
No files found.
hdl/spi_master_multifield/doc/Figures/clk_fsm.png
0 → 100644
View file @
7cc28d23
151 KB
hdl/spi_master_multifield/doc/Figures/clk_fsm.svg
0 → 100644
View file @
7cc28d23
This source diff could not be displayed because it is too large. You can
view the blob
instead.
hdl/spi_master_multifield/doc/Figures/spi_clk_fsm.png
0 → 100644
View file @
7cc28d23
358 KB
hdl/spi_master_multifield/doc/Figures/text4933-66-0-38-6-8-1-7-99.png
0 → 100644
View file @
7cc28d23
334 KB
hdl/spi_master_multifield/doc/spiSpecs.pdf
View file @
7cc28d23
No preview for this file type
hdl/spi_master_multifield/doc/spiSpecs.tex
View file @
7cc28d23
...
...
@@ -47,7 +47,8 @@
The core is specially targeted for
writing blocks of EEPROM memories which typically requiere three fields.
\\
writing blocks of EEPROM memories which typically requiere three fields. In
the case you are using a m25p32 memory, please refer to
\textit
{
m25p32 core
}
\\
\end{abstract}
\vspace
{
2cm
}
...
...
@@ -95,6 +96,8 @@ Please see the CERN OHL variable.1.1 for applicable conditions.\\
\section
{
Structure
}
The SPI module contains several blocks related the following way:
\\
-- spi
\_
master
\_
pkg.vhd
-- spi
\_
master
\_
top.vhd
----- spi
\_
master
\_
regs.vhd
...
...
@@ -216,18 +219,20 @@ same contents over the SPI).
\hline
5-3
&
x
&
Reserved
&
\textbf
{
"000"
}
\\
\hline
6
&
\textbf
{
SEND
\_
DATA
}
&
DATA bytes will be sent in
&
\textbf
{
'0'
}
\\
6
&
\textbf
{
READ
\_
MISO
}
&
READ bytes from MISO line
&
\textbf
{
'0'
}
\\
\hline
7
&
\textbf
{
SEND
\_
DATA
}
&
DATA bytes will be sent in
&
\textbf
{
'0'
}
\\
&
&
a write operation
&
\\
\hline
7
&
\textbf
{
SEND
\_
ADDR
}
&
ADDR bytes will be sent in
&
\textbf
{
'0'
}
\\
8
&
\textbf
{
SEND
\_
ADDR
}
&
ADDR bytes will be sent in
&
\textbf
{
'0'
}
\\
&
&
a write operation
&
\\
\hline
8
&
\textbf
{
SEND
\_
INST
}
&
INST bytes will be sent in
&
\textbf
{
'0'
}
\\
9
&
\textbf
{
SEND
\_
INST
}
&
INST bytes will be sent in
&
\textbf
{
'0'
}
\\
&
&
a write operation
&
\\
\hline
9
&
\textbf
{
SEND
\_
OP
}
&
perform a SEND OPeration
&
\textbf
{
'0'
}
\\
10
&
\textbf
{
SEND
\_
OP
}
&
perform a SEND OPeration
&
\textbf
{
'0'
}
\\
\hline
11-10
&
y
&
Reserved
&
\textbf
{
"00"
}
\\
11
&
y
&
Reserved
&
\textbf
{
"00"
}
\\
\hline
15-12
&
\textbf
{
CLK
\_
DIV
}
&
CLocK DIVider
&
\textbf
{
X"0"
}
\\
\hline
...
...
@@ -252,15 +257,19 @@ send.\\
\textbf
{
Bits
}
&
\textbf
{
Field
}
&
\textbf
{
Meaning
}
&
\textbf
{
Default
}
\\
\hline
\hline
0
&
\textbf
{
SENT
\_
DATA
}
&
DATA was SENT
&
\textbf
{
'0'
}
\\
0
&
\textbf
{
MISO
\_
DUP
}
&
MOSI Data UPdate
&
\textbf
{
'0'
}
\\
\hline
1
&
\textbf
{
READ
\_
DONE
}
&
READ process DONE
&
\textbf
{
'0'
}
\\
\hline
2
&
\textbf
{
SENT
\_
DATA
}
&
DATA was SENT
&
\textbf
{
'0'
}
\\
\hline
1
&
\textbf
{
SENT
\_
ADDR
}
&
ADDRess was SENT
&
\textbf
{
'0'
}
\\
3
&
\textbf
{
SENT
\_
ADDR
}
&
ADDRess was SENT
&
\textbf
{
'0'
}
\\
\hline
2
&
\textbf
{
SENT
\_
INST
}
&
INSTruction was SENT
&
\textbf
{
'0'
}
\\
4
&
\textbf
{
SENT
\_
INST
}
&
INSTruction was SENT
&
\textbf
{
'0'
}
\\
\hline
3
&
\textbf
{
SENT
\_
OP
}
&
OPeration was SENT
&
\textbf
{
'0'
}
\\
5
&
\textbf
{
SENT
\_
OP
}
&
OPeration was SENT
&
\textbf
{
'0'
}
\\
\hline
11-
4
&
x
&
Reserved
&
\textbf
{
X"00"
}
\\
11-
6
&
x
&
Reserved
&
\textbf
{
X"00"
}
\\
\hline
15-12
&
\textbf
{
CLK
\_
DIV
}
&
CLocK DIVision
&
\textbf
{
X"0"
}
\\
\hline
...
...
@@ -272,7 +281,8 @@ send.\\
\subsection
{
SPI3
}
The SPI3 register is a read-only register.
\\
It holds the data received by the MISO pin.
It holds the data received by the MISO pin. Valid data can be read as soon as
\textit
{
rd
\_
SPI3
\_
o
}
output in
\textit
{
spi
\_
master
\_
core.vhd
}
goes high.
\begin{table}
[!htb]
\begin{center}
...
...
@@ -320,7 +330,7 @@ The internal registers map over the wishbone interface is as follows:\\
It consists on writing the SPI0 register first, and then the SPI1 register.
\textbf
{
Order must be preserved
}
.
\\
Status of the operation can be followed via SPI2 register. SPI3 register offer
Status of the operation can be followed via SPI2 register. SPI3 register offer
s
the data read from the MISO line.
\\
\subsubsection
{
SPI0 register
}
...
...
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