1 |
2 |
rehayes |
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
2 |
14 |
rehayes |
////////////////////////////////////////////////////////////////////////////////
|
3 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
4 |
|
|
// SVN tag: None
|
5 |
|
|
|
6 |
77 |
rehayes |
June 10,2010
|
7 |
|
|
RTL - No Change
|
8 |
|
|
|
9 |
|
|
Testbench - No Change.
|
10 |
|
|
|
11 |
|
|
Doc - Added descriptions for interrupt bypass registers. Added Appendix B for
|
12 |
|
|
testbench description.
|
13 |
|
|
|
14 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
15 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
16 |
|
|
// SVN tag: None
|
17 |
|
|
|
18 |
76 |
rehayes |
May 18,2010
|
19 |
|
|
RTL - Fixed xlink synthesis warnings noted by Nachiket Jugade,
|
20 |
|
|
missing else statment for chid_sm_ns line 393,
|
21 |
|
|
missing default on shifter lines 2382 (Although all cases are covered).
|
22 |
|
|
|
23 |
|
|
Testbench - No Change.
|
24 |
|
|
|
25 |
|
|
Doc - No Change.
|
26 |
|
|
|
27 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
28 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
29 |
|
|
// SVN tag: None
|
30 |
|
|
|
31 |
74 |
rehayes |
May 13,2010
|
32 |
|
|
RTL - Code cleanup. Eliminated index [0] of "xgif" and "chan_req_i" output and
|
33 |
|
|
input pins along with assoicated status and and control registers. This
|
34 |
|
|
channel has never been usable.
|
35 |
|
|
|
36 |
|
|
Testbench - Changes to match changes in RTL .
|
37 |
|
|
|
38 |
|
|
Doc - No Change.
|
39 |
|
|
|
40 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
41 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
42 |
|
|
// SVN tag: None
|
43 |
|
|
|
44 |
71 |
rehayes |
May 12,2010
|
45 |
|
|
RTL - Added new control registers for interrupt bypass function. Out of reset
|
46 |
|
|
all input interrupts are bypassed directly to the Xgate interrupt outputs.
|
47 |
|
|
The interrupts are also disabled from effecting the Xgate till the bypass
|
48 |
|
|
is disabled. The interrupt priority has been flipped so that now the lowest
|
49 |
|
|
index input interrupt has the highest priority.
|
50 |
|
|
|
51 |
|
|
Testbench - Added semaphore register and read only registers to observe irq
|
52 |
|
|
outputs of Xgate to testbench slave module. Added parameters to support new
|
53 |
|
|
Xgate registers and testbench registers. Added new test to checkout
|
54 |
|
|
bypass functionality and interrupt priority encoding.
|
55 |
|
|
|
56 |
|
|
Doc - Updated with additions of IRQ Bypass registers.
|
57 |
|
|
|
58 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
59 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
60 |
|
|
// SVN tag: None
|
61 |
|
|
|
62 |
66 |
rehayes |
Apr 22,2010
|
63 |
|
|
RTL - Fixed bug when entering DEBUG by command from the slave WISHBONE bus.
|
64 |
|
|
All tests now pass when the RAM wait states are set from zero to four. Five
|
65 |
|
|
wait states times out in simulation while running the last test which is
|
66 |
|
|
a simple register test otherwise I expect it would pass.
|
67 |
|
|
|
68 |
|
|
Testbench - Many of the failures while testing wait states were due to fixed
|
69 |
76 |
rehayes |
delays coded in the testbench. As necessary, delays were changed to be a
|
70 |
66 |
rehayes |
function of a parameter that is based on the number of RAM wait states.
|
71 |
|
|
|
72 |
|
|
Doc - No change.
|
73 |
|
|
|
74 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
75 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
76 |
|
|
// SVN tag: None
|
77 |
|
|
|
78 |
61 |
rehayes |
Apr 5,2010
|
79 |
|
|
RTL - First pass at fixing bug when entering DEBUG by command from the slave
|
80 |
|
|
WISHBONE bus. All tests now pass when the RAM wait states are set to zero,
|
81 |
|
|
although there are errors in DEBUG mode when RAM wait states are increased.
|
82 |
76 |
rehayes |
Icarus Verilog version 0.9.2 now supports the "generate" command. This is
|
83 |
61 |
rehayes |
now used to instantiate the semaphore registers.
|
84 |
|
|
|
85 |
|
|
Testbench - Added capability to insert wait states on RAM access.
|
86 |
|
|
|
87 |
|
|
Doc - No change.
|
88 |
|
|
|
89 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
90 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
91 |
|
|
// SVN tag: None
|
92 |
|
|
|
93 |
58 |
rehayes |
Feb 12,2010
|
94 |
|
|
RTL - Update to the WISHBONE interface when wait states are enabled to trade
|
95 |
|
|
16 data flops for 5 address registers. This change now also requires single
|
96 |
|
|
cycle timing on the WISHBONE address bus, multi-cycle timing is still
|
97 |
|
|
allowed on the WISHBONE write data bus. In the old design WISHBONE read
|
98 |
|
|
cycles required the address to be decoded and the read data to be latched
|
99 |
|
|
in the first cycle and the there was a whole cycle to drive the read data
|
100 |
|
|
bus. The new design latches the address in the first cycle then decodes the
|
101 |
|
|
address and outputs the data in the second cycle. (The WISHBONE bus doesn't
|
102 |
|
|
require the address or data to be latched for multi-cycle operation but by
|
103 |
|
|
doing this it is hoped some power will be saved in the combinational logic
|
104 |
|
|
by reducing the decoding activity at each address change.)
|
105 |
|
|
|
106 |
|
|
Testbench - No change.
|
107 |
|
|
|
108 |
|
|
Doc - No change.
|
109 |
|
|
|
110 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
111 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
112 |
|
|
// SVN tag: None
|
113 |
|
|
|
114 |
56 |
rehayes |
Jan 27,2010
|
115 |
|
|
RTL - 85% done -- Fixed error in wbs_ack_o signal when Xgate wait states were
|
116 |
|
|
enabled. If a slave bus transaction was started but not completed in the
|
117 |
|
|
second cycle a wbs_ack_o output was still generated. Added a wbs_err_o output
|
118 |
|
|
signal to flag this input condition but not sure if it is really needed.
|
119 |
|
|
The old testbench was "helping" the Xgate module by sending an almost
|
120 |
|
|
continuous wbm_ack_i signal which allowed the RISC state machine to advance
|
121 |
|
|
when it shouldn't. Changes were made to the WISHBONE master bus interface
|
122 |
|
|
and the RISC control logic.
|
123 |
|
|
|
124 |
|
|
Updates to testbench -- Extensive changes to testbench. The bus arbitration
|
125 |
|
|
module has been completely rewritten. It now completely controls access to the
|
126 |
|
|
system bus and RAM. It internally generates a WISHBONE ack signal for the RAM.
|
127 |
|
|
The test control registers have been moved out of the top level and put into
|
128 |
|
|
a new WISHBONE slave module which also attaches to the system bus. The Xgate
|
129 |
|
|
modules master and slave buses are fully integrated with the bus arbitration
|
130 |
|
|
module and the system bus. The new testbench looks a lot more like a real
|
131 |
|
|
system environment.
|
132 |
|
|
To Do: Add back "random" wait state generation for RAM access.
|
133 |
|
|
|
134 |
|
|
Updates to User Guide -- Minor corrections to instruction set details. Needs more
|
135 |
|
|
review on condition code settings.
|
136 |
|
|
|
137 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
138 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
139 |
|
|
// SVN tag: None
|
140 |
|
|
|
141 |
51 |
rehayes |
Jan 11,2010
|
142 |
56 |
rehayes |
RTL - 85% done -- Fix error in Zero Flag calculation for ADC and SBC instructions
|
143 |
51 |
rehayes |
Fix Error in loading R2 durning cpu_state == BOOT_3.
|
144 |
|
|
THere is a bug in DEBUG mode that is sensitive to number of preceding
|
145 |
|
|
instructions and wait states that needs to be resolved.
|
146 |
|
|
|
147 |
|
|
Updates to testbench --
|
148 |
|
|
|
149 |
|
|
Updates to User Guide -- First pass with instruction set details. Needs more
|
150 |
|
|
review on condition code settings.
|
151 |
|
|
|
152 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
153 |
|
|
// SVN tag: None
|
154 |
|
|
|
155 |
44 |
rehayes |
Dec 08,2009
|
156 |
41 |
rehayes |
RTL - 85% done -- Updated code so there is only one program counter adder.
|
157 |
|
|
Updated WISHBONE Slave bus for word addressability and byte selection.
|
158 |
44 |
rehayes |
Deleted two stack pointer registers.
|
159 |
41 |
rehayes |
|
160 |
|
|
Updates to testbench --
|
161 |
|
|
|
162 |
|
|
Updates to User Guide -- Minor cleanup.
|
163 |
|
|
|
164 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
165 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
166 |
|
|
// SVN tag: None
|
167 |
|
|
|
168 |
38 |
rehayes |
Nov 09,2009
|
169 |
|
|
RTL - 85% done - Minor changes to Mastermode bus.
|
170 |
|
|
|
171 |
|
|
Updates to testbench, Moved RAM.to submodule, Added bus arbitration module
|
172 |
|
|
but this is not fully functional. Causes timing problems when master is
|
173 |
56 |
rehayes |
polling Xgate registers durning debug mode tests. Will probably change RAM
|
174 |
38 |
rehayes |
model to dual port in next revision.
|
175 |
|
|
Updated master module to include WISHBONE select inputs.
|
176 |
|
|
|
177 |
|
|
Updates to User Guide.
|
178 |
|
|
|
179 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
180 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
181 |
|
|
// SVN tag: None
|
182 |
|
|
|
183 |
23 |
rehayes |
Oct 07,2009
|
184 |
|
|
RTL - 85% done
|
185 |
|
|
All debug commands now working, including writes to XGCHID register.
|
186 |
|
|
|
187 |
|
|
Updates to testbench, added timeout and total error count.
|
188 |
41 |
rehayes |
|
189 |
|
|
Updates to User Guide --.
|
190 |
|
|
|
191 |
23 |
rehayes |
Created the sw directory and copied over the software stuff from the bench
|
192 |
|
|
directory.
|
193 |
|
|
|
194 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
195 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
196 |
|
|
// SVN tag: None
|
197 |
|
|
|
198 |
14 |
rehayes |
Sept 23,2009
|
199 |
|
|
BRK instruction working. Single Step Command in debug mode working.
|
200 |
|
|
Software error interrupt added.
|
201 |
|
|
|
202 |
|
|
Updates to testbench.
|
203 |
|
|
New assembly code directory: debug_test
|
204 |
|
|
|
205 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
206 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
207 |
|
|
// SVN tag: None
|
208 |
|
|
|
209 |
5 |
rehayes |
Sept 10,2009
|
210 |
|
|
Added WISHBONE master bus submodule and some related top level signals but still
|
211 |
|
|
not much real functionality.
|
212 |
|
|
|
213 |
|
|
Added code to allow for memory access stalls.
|
214 |
|
|
|
215 |
|
|
Upgraded testbench to insert memory wait states. Added more error detection
|
216 |
|
|
and summery.
|
217 |
|
|
|
218 |
|
|
Improved instruction decoder. Still needs more work to remove redundant adders
|
219 |
|
|
to improve synthesis results.
|
220 |
|
|
|
221 |
14 |
rehayes |
////////////////////////////////////////////////////////////////////////////////
|
222 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
223 |
|
|
// SVN tag: None
|
224 |
5 |
rehayes |
|
225 |
2 |
rehayes |
Sept 1, 2009
|
226 |
|
|
This is a prerelease checkin and should be looked at as an incremental backup
|
227 |
|
|
and not representative of what may be in the final release.
|
228 |
|
|
|
229 |
|
|
RTL - 75% done
|
230 |
|
|
What works:
|
231 |
|
|
Basic instruction set execution simulated and verified. Condition code
|
232 |
|
|
operation on instructions partially verified.
|
233 |
|
|
|
234 |
|
|
Basic WISHBONE slave bus operation used, full functionality not verified.
|
235 |
|
|
|
236 |
|
|
What's broken or unimplemented:
|
237 |
|
|
All things related to debug mode.
|
238 |
|
|
WISHBONE master bus interface.
|
239 |
|
|
|
240 |
5 |
rehayes |
User Documentation - 30% done
|
241 |
|
|
|