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
43aca69f
Commit
43aca69f
authored
Aug 03, 2012
by
gilsoriano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small modifications in some generics.
parent
24498b25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spi_master_core.vhd
hdl/spi_master_multifield/rtl/spi_master_core.vhd
+5
-4
spi_master_pkg.vhd
hdl/spi_master_multifield/rtl/spi_master_pkg.vhd
+1
-2
No files found.
hdl/spi_master_multifield/rtl/spi_master_core.vhd
View file @
43aca69f
...
...
@@ -145,10 +145,11 @@ signal s_spi_clk_rst_i : STD_LOGIC;
signal
s_STATUS_pull_byte_already
:
STD_LOGIC
;
signal
s_spi_counter_manual_rst_clk_already
:
STD_LOGIC
;
signal
s_BINST
:
UNSIGNED
(
r_SPI0
.
BINST
'length
-
1
downto
0
);
signal
s_BADDR
:
UNSIGNED
(
r_SPI0
.
BADDR
'length
-
1
downto
0
);
signal
s_BDATA
:
UNSIGNED
(
r_SPI0
.
BDATA
'length
-
1
downto
0
);
--! Watch out here, 9 is the length of those fields
signal
s_BINST
:
UNSIGNED
(
9
-
1
downto
0
);
signal
s_BADDR
:
UNSIGNED
(
9
-
1
downto
0
);
signal
s_BDATA
:
UNSIGNED
(
9
-
1
downto
0
);
signal
s_spi_clk_fsm_d0clk
:
SPI_spi_clk_fsm
;
signal
s_clk_fsm_d0
:
SPI_clk_fsm
;
...
...
hdl/spi_master_multifield/rtl/spi_master_pkg.vhd
View file @
43aca69f
...
...
@@ -132,8 +132,7 @@ package spi_master_pkg is
constant
c_ADDR_LENGTH
:
NATURAL
:
=
3
;
constant
c_DATA_LENGTH
:
NATURAL
:
=
256
;
constant
c_CLK_DIV
:
UNSIGNED
(
15
downto
12
)
:
=
to_unsigned
(
2
,
r_SPI1
.
CLK_DIV
'length
);
constant
c_CLK_DIV
:
UNSIGNED
(
15
downto
12
)
:
=
to_unsigned
(
2
,
4
);
constant
c_SPI0_default
:
r_SPI0
:
=
(
CPOL
=>
'0'
,
CPHA
=>
'0'
,
x
=>
(
others
=>
'0'
),
...
...
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