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
00f54b5b
Commit
00f54b5b
authored
Dec 08, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'framepars' of github.com:Elphel/x393 into framepars
parents
e6ec1a9f
18f4a937
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
15 deletions
+16
-15
ahci_defaults.vh
includes/ahci_defaults.vh
+1
-1
ahci_localparams.vh
includes/ahci_localparams.vh
+1
-1
ahci_ctrl_stat.v
x393_sata/ahci/ahci_ctrl_stat.v
+1
-1
ahci_fsm.v
x393_sata/ahci/ahci_fsm.v
+3
-1
axi_ahci_regs.v
x393_sata/ahci/axi_ahci_regs.v
+2
-1
action_decoder.v
x393_sata/generated/action_decoder.v
+4
-5
condition_mux.v
x393_sata/generated/condition_mux.v
+4
-5
No files found.
includes/ahci_defaults.vh
View file @
00f54b5b
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
, .INIT_08 (256'h000000000024000600000000000000000000000080000C000000000080000800)
, .INIT_08 (256'h000000000024000600000000000000000000000080000C000000000080000800)
, .INIT_09 (256'h000000000000000000000000000000000000000000000000FFFFFFFF00000000)
, .INIT_09 (256'h000000000000000000000000000000000000000000000000FFFFFFFF00000000)
, .INIT_0B (256'h0000000000000000000000000000003300000000000000000000000000000000)
, .INIT_0B (256'h0000000000000000000000000000003300000000000000000000000000000000)
, .INIT_0C (256'h00000000000000000000000000000000000000000101000
2
001000000001FFFE)
, .INIT_0C (256'h00000000000000000000000000000000000000000101000
B
001000000001FFFE)
, .INIT_0D (256'h000001000000000000000040000000000001FFFE000000008000000000000000)
, .INIT_0D (256'h000001000000000000000040000000000001FFFE000000008000000000000000)
, .INIT_0E (256'h0000000000000000000000000000000000000000000000000000000040000001)
, .INIT_0E (256'h0000000000000000000000000000000000000000000000000000000040000001)
includes/ahci_localparams.vh
View file @
00f54b5b
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
// RO: HBA Revision ID
// RO: HBA Revision ID
localparam PCI_Header__RID__RID__ADDR = 'h62;
localparam PCI_Header__RID__RID__ADDR = 'h62;
localparam PCI_Header__RID__RID__MASK = 'hff;
localparam PCI_Header__RID__RID__MASK = 'hff;
localparam PCI_Header__RID__RID__DFLT = 'h
2
;
localparam PCI_Header__RID__RID__DFLT = 'h
b
;
// RO: Base Class Code: 1 - Mass Storage Device
// RO: Base Class Code: 1 - Mass Storage Device
localparam PCI_Header__CC__BCC__ADDR = 'h62;
localparam PCI_Header__CC__BCC__ADDR = 'h62;
localparam PCI_Header__CC__BCC__MASK = 'hff000000;
localparam PCI_Header__CC__BCC__MASK = 'hff000000;
...
...
x393_sata/ahci/ahci_ctrl_stat.v
View file @
00f54b5b
...
@@ -498,7 +498,7 @@ localparam PxCMD_MASK = HBA_PORT__PxCMD__ICC__MASK | // 'hf0000000;
...
@@ -498,7 +498,7 @@ localparam PxCMD_MASK = HBA_PORT__PxCMD__ICC__MASK | // 'hf0000000;
else
if
(
swr_HBA_PORT__PxCI
)
pxci0_r
<=
soft_write_data
[
0
]
;
else
if
(
swr_HBA_PORT__PxCI
)
pxci0_r
<=
soft_write_data
[
0
]
;
end
end
// HBA_PORT__PxCMD register - different behaviors of differ
t
nt fields
// HBA_PORT__PxCMD register - different behaviors of differ
e
nt fields
// use PxCMD_MASK to prevent generation of unneeded register bits
// use PxCMD_MASK to prevent generation of unneeded register bits
always
@
(
posedge
mclk
)
begin
always
@
(
posedge
mclk
)
begin
...
...
x393_sata/ahci/ahci_fsm.v
View file @
00f54b5b
...
@@ -394,7 +394,9 @@ module ahci_fsm
...
@@ -394,7 +394,9 @@ module ahci_fsm
if
(
fsm_actions
&&
fsm_next
)
was_last_action_r
<=
fsm_last_act_w
;
if
(
fsm_actions
&&
fsm_next
)
was_last_action_r
<=
fsm_last_act_w
;
if
(
hba_rst
||
pre_jump_w
)
fsm_transitions
<=
0
;
//// if (hba_rst || pre_jump_w) fsm_transitions <= 0;
/// 2016.12.07 jumps were not disabled after async transitions, they came from the previously executed code
if
(
hba_rst
||
pre_jump_w
||
dis_actions
)
fsm_transitions
<=
0
;
else
if
(
fsm_transitions_w
)
fsm_transitions
<=
1
;
else
if
(
fsm_transitions_w
)
fsm_transitions
<=
1
;
// else if ((fsm_last_act_w && fsm_actions && fsm_next && !fsm_wait_act_w) ||
// else if ((fsm_last_act_w && fsm_actions && fsm_next && !fsm_wait_act_w) ||
// (fsm_act_busy && fsm_act_done && was_last_action_r) ) fsm_transitions <= 1;
// (fsm_act_busy && fsm_act_done && was_last_action_r) ) fsm_transitions <= 1;
...
...
x393_sata/ahci/axi_ahci_regs.v
View file @
00f54b5b
...
@@ -332,7 +332,8 @@ module axi_ahci_regs#(
...
@@ -332,7 +332,8 @@ module axi_ahci_regs#(
end
end
always
@
(
hba_clk
)
begin
//// always @ (hba_clk) begin
always
@
(
posedge
aclk
)
begin
was_hba_rst_r
<=
{
was_hba_rst_aclk
,
was_hba_rst_r
[
2
:
1
]
};
was_hba_rst_r
<=
{
was_hba_rst_aclk
,
was_hba_rst_r
[
2
:
1
]
};
was_port_rst_r
<=
{
was_port_rst_aclk
,
was_port_rst_r
[
2
:
1
]
};
was_port_rst_r
<=
{
was_port_rst_aclk
,
was_port_rst_r
[
2
:
1
]
};
end
end
...
...
x393_sata/generated/action_decoder.v
View file @
00f54b5b
/*!
/*!
* <b>Module:</b>action_decoder
* <b>Module:</b>action_decoder
* @file action_decoder.v
* @file action_decoder.v
* @date 2016-03-12
* @date 2016-12-08
* @author auto-generated file, see ahci_fsm_sequence_old.py
* @author auto-generated file, see ahci_fsm_sequence.py
*
* @brief Decode sequencer code to 1-hot actions
* @brief Decode sequencer code to 1-hot actions
*/
*/
`timescale
1
ns
/
1
ps
`timescale
1
ns
/
1
ps
...
...
x393_sata/generated/condition_mux.v
View file @
00f54b5b
/*!
/*!
* <b>Module:</b>condition_mux
* <b>Module:</b>condition_mux
* @file condition_mux.v
* @file condition_mux.v
* @date 2016-03-12
* @date 2016-12-08
* @author auto-generated file, see ahci_fsm_sequence_old.py
* @author auto-generated file, see ahci_fsm_sequence.py
*
* @brief Select condition
* @brief Select condition
*/
*/
`timescale
1
ns
/
1
ps
`timescale
1
ns
/
1
ps
...
...
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