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
dde1725e
Commit
dde1725e
authored
Feb 10, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more simulation
parent
f9e935af
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
719 additions
and
17 deletions
+719
-17
x393_localparams.vh
includes/x393_localparams.vh
+6
-0
x393_tasks01.vh
includes/x393_tasks01.vh
+2
-0
mcontr_sequencer.v
phy/mcontr_sequencer.v
+2
-1
x393_testbench01.sav
x393_testbench01.sav
+48
-10
x393_testbench01.tf
x393_testbench01.tf
+661
-6
No files found.
includes/x393_localparams.vh
View file @
dde1725e
...
@@ -79,3 +79,9 @@
...
@@ -79,3 +79,9 @@
localparam READ_PATTERN_OFFSET='h40; // read pattern to memory block sequence start address (in words) ..'h053 with 8x2*64 bits (variable)
localparam READ_PATTERN_OFFSET='h40; // read pattern to memory block sequence start address (in words) ..'h053 with 8x2*64 bits (variable)
localparam WRITE_BLOCK_OFFSET= 'h100; // write block sequence start address (in words) ..'h14c
localparam WRITE_BLOCK_OFFSET= 'h100; // write block sequence start address (in words) ..'h14c
localparam READ_BLOCK_OFFSET= 'h180; // read block sequence start address (in words)
localparam READ_BLOCK_OFFSET= 'h180; // read block sequence start address (in words)
localparam STATUS_SEQ_SHFT= 26; // bits [31:26] is the sequence number
localparam STATUS_2LSB_SHFT= 24; // bits [25:24] get the 2 LSB of the status (transmitted with the sequence number in the second byte)
localparam STATUS_MSB_RSHFT= 2; // status bits [25:2] are read through [23:0]
localparam STATUS_PSHIFTER_RDY_MASK = 1<<STATUS_2LSB_SHFT;
\ No newline at end of file
includes/x393_tasks01.vh
View file @
dde1725e
...
@@ -56,6 +56,8 @@
...
@@ -56,6 +56,8 @@
wait (!CLK && rvalid && rready);
wait (!CLK && rvalid && rready);
wait (CLK);
wait (CLK);
registered_rdata <= rdata;
registered_rdata <= rdata;
wait (!CLK); // registered_rdata should be valid on exit
end
end
endtask
endtask
...
...
phy/mcontr_sequencer.v
View file @
dde1725e
...
@@ -395,7 +395,8 @@ module mcontr_sequencer #(
...
@@ -395,7 +395,8 @@ module mcontr_sequencer #(
// TODO: status
// TODO: status
assign
locked
=
locked_mmcm
&&
locked_pll
;
assign
locked
=
locked_mmcm
&&
locked_pll
;
assign
status_data
={
dly_ready
,
dci_ready
,
locked_mmcm
,
locked_pll
,
run_busy
,
locked
,
ps_rdy
,
ps_out
[
7
:
0
]
};
// assign status_data={dly_ready,dci_ready, locked_mmcm, locked_pll, run_busy,locked,ps_rdy,ps_out[7:0]};
assign
status_data
={
dly_ready
,
dci_ready
,
locked_mmcm
,
locked_pll
,
run_busy
,
ps_out
[
7
:
0
]
,
locked
,
ps_rdy
};
status_generate
#(
status_generate
#(
.
STATUS_REG_ADDR
(
MCONTR_PHY_STATUS_REG_ADDR
)
,
.
STATUS_REG_ADDR
(
MCONTR_PHY_STATUS_REG_ADDR
)
,
.
PAYLOAD_BITS
(
15
)
.
PAYLOAD_BITS
(
15
)
...
...
x393_testbench01.sav
View file @
dde1725e
[*]
[*]
[*] GTKWave Analyzer v3.3.58 (w)1999-2014 BSI
[*] GTKWave Analyzer v3.3.58 (w)1999-2014 BSI
[*] Tue Feb 10
02:20:51
2015
[*] Tue Feb 10
23:41:40
2015
[*]
[*]
[dumpfile] "/home/andrey/git/x393/simulation/x393_testbench01-201502
09170430851
.lxt"
[dumpfile] "/home/andrey/git/x393/simulation/x393_testbench01-201502
10163649454
.lxt"
[dumpfile_mtime] "Tue Feb 10
00:05:13
2015"
[dumpfile_mtime] "Tue Feb 10
23:38:44
2015"
[dumpfile_size]
11536611
[dumpfile_size]
33747890
[savefile] "/home/andrey/git/x393/x393_testbench01.sav"
[savefile] "/home/andrey/git/x393/x393_testbench01.sav"
[timestart] 1
00326
000
[timestart] 1
12454
000
[size] 1823 11
73
[size] 1823 11
80
[pos] 1922 0
[pos] 1922 0
*-19.878319 1
029813
00 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
*-19.878319 1
151100
00 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
[treeopen] x393_testbench01.
[treeopen] x393_testbench01.
[treeopen] x393_testbench01.x393_i.
[treeopen] x393_testbench01.x393_i.mcntrl393_i.memctrl16_i.
[treeopen] x393_testbench01.x393_i.mcntrl393_i.memctrl16_i.
[treeopen] x393_testbench01.x393_i.mcntrl393_i.memctrl16_i.mcontr_sequencer_i.
[treeopen] x393_testbench01.x393_i.mcntrl393_i.memctrl16_i.mcontr_sequencer_i.
[treeopen] x393_testbench01.x393_i.mcntrl393_i.memctrl16_i.mcontr_sequencer_i.cmd_deser_16bit_i.
[treeopen] x393_testbench01.x393_i.mcntrl393_i.memctrl16_i.mcontr_sequencer_i.cmd_deser_16bit_i.
...
@@ -24,11 +23,51 @@
...
@@ -24,11 +23,51 @@
[sst_vpaned_height] 371
[sst_vpaned_height] 371
@800200
@800200
-top_simulation
-top_simulation
@22
@28
x393_testbench01.CLK[0]
@c00022
x393_testbench01.registered_rdata[31:0]
x393_testbench01.registered_rdata[31:0]
@28
(0)x393_testbench01.registered_rdata[31:0]
(1)x393_testbench01.registered_rdata[31:0]
(2)x393_testbench01.registered_rdata[31:0]
(3)x393_testbench01.registered_rdata[31:0]
(4)x393_testbench01.registered_rdata[31:0]
(5)x393_testbench01.registered_rdata[31:0]
(6)x393_testbench01.registered_rdata[31:0]
(7)x393_testbench01.registered_rdata[31:0]
(8)x393_testbench01.registered_rdata[31:0]
(9)x393_testbench01.registered_rdata[31:0]
(10)x393_testbench01.registered_rdata[31:0]
(11)x393_testbench01.registered_rdata[31:0]
(12)x393_testbench01.registered_rdata[31:0]
(13)x393_testbench01.registered_rdata[31:0]
(14)x393_testbench01.registered_rdata[31:0]
(15)x393_testbench01.registered_rdata[31:0]
(16)x393_testbench01.registered_rdata[31:0]
(17)x393_testbench01.registered_rdata[31:0]
(18)x393_testbench01.registered_rdata[31:0]
(19)x393_testbench01.registered_rdata[31:0]
(20)x393_testbench01.registered_rdata[31:0]
(21)x393_testbench01.registered_rdata[31:0]
(22)x393_testbench01.registered_rdata[31:0]
(23)x393_testbench01.registered_rdata[31:0]
(24)x393_testbench01.registered_rdata[31:0]
(25)x393_testbench01.registered_rdata[31:0]
(26)x393_testbench01.registered_rdata[31:0]
(27)x393_testbench01.registered_rdata[31:0]
(28)x393_testbench01.registered_rdata[31:0]
(29)x393_testbench01.registered_rdata[31:0]
(30)x393_testbench01.registered_rdata[31:0]
(31)x393_testbench01.registered_rdata[31:0]
@1401200
-group_end
@22
x393_testbench01.read_and_wait_status.address[7:0]
x393_testbench01.read_and_wait_status.address[7:0]
x393_testbench01.x393_i.status_rdata[31:0]
x393_testbench01.x393_i.status_rdata[31:0]
x393_testbench01.x393_i.axird_rdata[31:0]
x393_testbench01.x393_i.axird_rdata[31:0]
x393_testbench01.target_phase[7:0]
x393_testbench01.read_and_wait_status.address[7:0]
@1000200
@1000200
-top_simulation
-top_simulation
@200
@200
...
@@ -670,7 +709,6 @@ x393_testbench01.x393_i.axibram_read_i.dev_ready[0]
...
@@ -670,7 +709,6 @@ x393_testbench01.x393_i.axibram_read_i.dev_ready[0]
x393_testbench01.x393_i.axibram_read_i.last_in_burst_0[0]
x393_testbench01.x393_i.axibram_read_i.last_in_burst_0[0]
x393_testbench01.x393_i.axibram_read_i.last_in_burst_1[0]
x393_testbench01.x393_i.axibram_read_i.last_in_burst_1[0]
x393_testbench01.x393_i.axibram_read_i.last_in_burst_d_w[0]
x393_testbench01.x393_i.axibram_read_i.last_in_burst_d_w[0]
@29
x393_testbench01.x393_i.axibram_read_i.last_in_burst_w[0]
x393_testbench01.x393_i.axibram_read_i.last_in_burst_w[0]
@22
@22
x393_testbench01.x393_i.axibram_read_i.next_rd_address_w[12:0]
x393_testbench01.x393_i.axibram_read_i.next_rd_address_w[12:0]
...
...
x393_testbench01.tf
View file @
dde1725e
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