1 |
2 |
rehayes |
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
2 |
14 |
rehayes |
////////////////////////////////////////////////////////////////////////////////
|
3 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
4 |
|
|
// SVN tag: None
|
5 |
|
|
|
6 |
61 |
rehayes |
Apr 5,2010
|
7 |
|
|
RTL - First pass at fixing bug when entering DEBUG by command from the slave
|
8 |
|
|
WISHBONE bus. All tests now pass when the RAM wait states are set to zero,
|
9 |
|
|
although there are errors in DEBUG mode when RAM wait states are increased.
|
10 |
|
|
Icarus Verilog version 0.9.2 now supports the "generate" command. This is
|
11 |
|
|
now used to instantiate the semaphore registers.
|
12 |
|
|
|
13 |
|
|
Testbench - Added capability to insert wait states on RAM access.
|
14 |
|
|
|
15 |
|
|
Doc - No change.
|
16 |
|
|
|
17 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
18 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
19 |
|
|
// SVN tag: None
|
20 |
|
|
|
21 |
58 |
rehayes |
Feb 12,2010
|
22 |
|
|
RTL - Update to the WISHBONE interface when wait states are enabled to trade
|
23 |
|
|
16 data flops for 5 address registers. This change now also requires single
|
24 |
|
|
cycle timing on the WISHBONE address bus, multi-cycle timing is still
|
25 |
|
|
allowed on the WISHBONE write data bus. In the old design WISHBONE read
|
26 |
|
|
cycles required the address to be decoded and the read data to be latched
|
27 |
|
|
in the first cycle and the there was a whole cycle to drive the read data
|
28 |
|
|
bus. The new design latches the address in the first cycle then decodes the
|
29 |
|
|
address and outputs the data in the second cycle. (The WISHBONE bus doesn't
|
30 |
|
|
require the address or data to be latched for multi-cycle operation but by
|
31 |
|
|
doing this it is hoped some power will be saved in the combinational logic
|
32 |
|
|
by reducing the decoding activity at each address change.)
|
33 |
|
|
|
34 |
|
|
Testbench - No change.
|
35 |
|
|
|
36 |
|
|
Doc - No change.
|
37 |
|
|
|
38 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
39 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
40 |
|
|
// SVN tag: None
|
41 |
|
|
|
42 |
56 |
rehayes |
Jan 27,2010
|
43 |
|
|
RTL - 85% done -- Fixed error in wbs_ack_o signal when Xgate wait states were
|
44 |
|
|
enabled. If a slave bus transaction was started but not completed in the
|
45 |
|
|
second cycle a wbs_ack_o output was still generated. Added a wbs_err_o output
|
46 |
|
|
signal to flag this input condition but not sure if it is really needed.
|
47 |
|
|
The old testbench was "helping" the Xgate module by sending an almost
|
48 |
|
|
continuous wbm_ack_i signal which allowed the RISC state machine to advance
|
49 |
|
|
when it shouldn't. Changes were made to the WISHBONE master bus interface
|
50 |
|
|
and the RISC control logic.
|
51 |
|
|
|
52 |
|
|
Updates to testbench -- Extensive changes to testbench. The bus arbitration
|
53 |
|
|
module has been completely rewritten. It now completely controls access to the
|
54 |
|
|
system bus and RAM. It internally generates a WISHBONE ack signal for the RAM.
|
55 |
|
|
The test control registers have been moved out of the top level and put into
|
56 |
|
|
a new WISHBONE slave module which also attaches to the system bus. The Xgate
|
57 |
|
|
modules master and slave buses are fully integrated with the bus arbitration
|
58 |
|
|
module and the system bus. The new testbench looks a lot more like a real
|
59 |
|
|
system environment.
|
60 |
|
|
To Do: Add back "random" wait state generation for RAM access.
|
61 |
|
|
|
62 |
|
|
Updates to User Guide -- Minor corrections to instruction set details. Needs more
|
63 |
|
|
review on condition code settings.
|
64 |
|
|
|
65 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
66 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
67 |
|
|
// SVN tag: None
|
68 |
|
|
|
69 |
51 |
rehayes |
Jan 11,2010
|
70 |
56 |
rehayes |
RTL - 85% done -- Fix error in Zero Flag calculation for ADC and SBC instructions
|
71 |
51 |
rehayes |
Fix Error in loading R2 durning cpu_state == BOOT_3.
|
72 |
|
|
THere is a bug in DEBUG mode that is sensitive to number of preceding
|
73 |
|
|
instructions and wait states that needs to be resolved.
|
74 |
|
|
|
75 |
|
|
Updates to testbench --
|
76 |
|
|
|
77 |
|
|
Updates to User Guide -- First pass with instruction set details. Needs more
|
78 |
|
|
review on condition code settings.
|
79 |
|
|
|
80 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
81 |
|
|
// SVN tag: None
|
82 |
|
|
|
83 |
44 |
rehayes |
Dec 08,2009
|
84 |
41 |
rehayes |
RTL - 85% done -- Updated code so there is only one program counter adder.
|
85 |
|
|
Updated WISHBONE Slave bus for word addressability and byte selection.
|
86 |
44 |
rehayes |
Deleted two stack pointer registers.
|
87 |
41 |
rehayes |
|
88 |
|
|
Updates to testbench --
|
89 |
|
|
|
90 |
|
|
Updates to User Guide -- Minor cleanup.
|
91 |
|
|
|
92 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
93 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
94 |
|
|
// SVN tag: None
|
95 |
|
|
|
96 |
38 |
rehayes |
Nov 09,2009
|
97 |
|
|
RTL - 85% done - Minor changes to Mastermode bus.
|
98 |
|
|
|
99 |
|
|
Updates to testbench, Moved RAM.to submodule, Added bus arbitration module
|
100 |
|
|
but this is not fully functional. Causes timing problems when master is
|
101 |
56 |
rehayes |
polling Xgate registers durning debug mode tests. Will probably change RAM
|
102 |
38 |
rehayes |
model to dual port in next revision.
|
103 |
|
|
Updated master module to include WISHBONE select inputs.
|
104 |
|
|
|
105 |
|
|
Updates to User Guide.
|
106 |
|
|
|
107 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
108 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
109 |
|
|
// SVN tag: None
|
110 |
|
|
|
111 |
23 |
rehayes |
Oct 07,2009
|
112 |
|
|
RTL - 85% done
|
113 |
|
|
All debug commands now working, including writes to XGCHID register.
|
114 |
|
|
|
115 |
|
|
Updates to testbench, added timeout and total error count.
|
116 |
41 |
rehayes |
|
117 |
|
|
Updates to User Guide --.
|
118 |
|
|
|
119 |
23 |
rehayes |
Created the sw directory and copied over the software stuff from the bench
|
120 |
|
|
directory.
|
121 |
|
|
|
122 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
123 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
124 |
|
|
// SVN tag: None
|
125 |
|
|
|
126 |
14 |
rehayes |
Sept 23,2009
|
127 |
|
|
BRK instruction working. Single Step Command in debug mode working.
|
128 |
|
|
Software error interrupt added.
|
129 |
|
|
|
130 |
|
|
Updates to testbench.
|
131 |
|
|
New assembly code directory: debug_test
|
132 |
|
|
|
133 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
134 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
135 |
|
|
// SVN tag: None
|
136 |
|
|
|
137 |
5 |
rehayes |
Sept 10,2009
|
138 |
|
|
Added WISHBONE master bus submodule and some related top level signals but still
|
139 |
|
|
not much real functionality.
|
140 |
|
|
|
141 |
|
|
Added code to allow for memory access stalls.
|
142 |
|
|
|
143 |
|
|
Upgraded testbench to insert memory wait states. Added more error detection
|
144 |
|
|
and summery.
|
145 |
|
|
|
146 |
|
|
Improved instruction decoder. Still needs more work to remove redundant adders
|
147 |
|
|
to improve synthesis results.
|
148 |
|
|
|
149 |
14 |
rehayes |
////////////////////////////////////////////////////////////////////////////////
|
150 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
151 |
|
|
// SVN tag: None
|
152 |
5 |
rehayes |
|
153 |
2 |
rehayes |
Sept 1, 2009
|
154 |
|
|
This is a prerelease checkin and should be looked at as an incremental backup
|
155 |
|
|
and not representative of what may be in the final release.
|
156 |
|
|
|
157 |
|
|
RTL - 75% done
|
158 |
|
|
What works:
|
159 |
|
|
Basic instruction set execution simulated and verified. Condition code
|
160 |
|
|
operation on instructions partially verified.
|
161 |
|
|
|
162 |
|
|
Basic WISHBONE slave bus operation used, full functionality not verified.
|
163 |
|
|
|
164 |
|
|
What's broken or unimplemented:
|
165 |
|
|
All things related to debug mode.
|
166 |
|
|
WISHBONE master bus interface.
|
167 |
|
|
|
168 |
5 |
rehayes |
User Documentation - 30% done
|
169 |
|
|
|