Rev |
Log message |
Author |
Age |
Path |
34 |
Implemented load and store instructions (`mov reg, [reg]` and `mov [reg], reg` respectively) |
earlz |
4417d 00h |
/tinycpu/ |
33 |
Added more test cases for push/pop. More are still needed though
Fixed SP increment/decrementing
Added new opcode `mov reg,reg` so debugging isn't such a pain |
earlz |
4417d 03h |
/tinycpu/ |
32 |
Finished up changes needed to make memory reading actually work.
Push and Pop now work |
earlz |
4417d 04h |
/tinycpu/ |
31 |
Removed the infamous TRData latch from ALU. Now synthesizes (sorta) warning free. No latches are used. |
earlz |
4418d 00h |
/tinycpu/ |
30 |
After a long weekend of thinking how to do this.. I've decided instead to not strive for a single-cycle computer.
Now, instead, ALU operations will be 2 cycle along with memory operations, and data movement operations are still 1 cycle |
earlz |
4418d 00h |
/tinycpu/ |
29 |
Well, added a testcase for testing the ALU bitwise operations and found a very large problem.
I'm pretty sure that the decoder needs to be partially unclocked because it essentially makes the ALU clocked how it is now, which is very bad. |
earlz |
4421d 07h |
/tinycpu/ |
28 |
Ok now registerfile is correct. Only using rising_edge. Now DataOut is the same as DataIn when WriteEnable is asserted.
Some of my tests had to be changed because I was expecting the DataOut to be updated 1 clock cycle after the instruction rather than on the same clock cycle.
Now it's truly single-cycle and without all the weird regIn stuff on the carryovers |
earlz |
4422d 02h |
/tinycpu/ |
27 |
Added a few ALU opcodes and came across a weird propogation delay issue with my registerfile.
As a workaround, I'm trying to use falling_edge instead of rising_edge. We shall see if I regret this later |
earlz |
4422d 08h |
/tinycpu/ |
26 |
Added extra check to make sure fetcher works properly after memory write |
earlz |
4422d 09h |
/tinycpu/ |
25 |
Wait for memory state now works as expected, and opcode `mov [reg], immd` works now |
earlz |
4422d 13h |
/tinycpu/ |
24 |
Good news, mov to IP actually works as expected! |
earlz |
4423d 06h |
/tinycpu/ |
23 |
Added top module for testing how our memory and cpu will work together. (hint: success)
Messing around with a small timing issue in core |
earlz |
4423d 07h |
/tinycpu/ |
22 |
Added to process sensitivity list to avoid warning and added ELSE for IR so it doesn't generate a latch |
earlz |
4423d 22h |
/tinycpu/ |
21 |
The core_tb testbench finally passes. It probably doesn't synthesize, or even pass other testbenches, but it passes that one damn it. |
earlz |
4423d 23h |
/tinycpu/ |
20 |
fuck it. All sorts of broken, will try to fix it tomorrow |
earlz |
4424d 23h |
/tinycpu/ |
19 |
Got beginning of core/decoder for the CPU |
earlz |
4425d 00h |
/tinycpu/ |
18 |
Finished memory controller |
earlz |
4428d 10h |
/tinycpu/ |
17 |
Added fetch component for fetching from memory to instruction register
Added additional testing for carryover to make sure it's correct |
earlz |
4428d 23h |
/tinycpu/ |
16 |
Renamed incdec to carryover (see design for why).
carryover should be done, though may change the "straight through on disable" behavior to instead leaving it floating depending on how things go later with coding. |
earlz |
4432d 02h |
/tinycpu/ |
15 |
Added README, LICENSE, and the (so far not created) incdec component |
earlz |
4433d 23h |
/tinycpu/ |
14 |
Added ALU with all the operations we'll need. Synthesizes as well trivially |
earlz |
4434d 07h |
/tinycpu/ |
13 |
Forgot about the new library I added |
earlz |
4434d 10h |
/tinycpu/ |
12 |
registerfile has ports for every register now
makefile now uses GHW file format for gtkwave instead of VCD |
earlz |
4434d 11h |
/tinycpu/ |
11 |
Finally, it synthesizes to BRAM.. Possibly need to fix how the DataOut syncs with WriteEnable and Address though if I plan to both read and write on the same clock edge |
earlz |
4438d 00h |
/tinycpu/ |
10 |
Just committing so I can keep this original that passes simulation, but still synthesizes to LUTs |
earlz |
4438d 00h |
/tinycpu/ |
9 |
Trying to add a byte-enable to the RAM. Used Xilinx's template for it, but ghdl won't pass the testbench |
earlz |
4438d 08h |
/tinycpu/ |
8 |
Added blockram for inferring actual block RAM.
Now we need a memory controller, not a crappy memory emulation thing |
earlz |
4439d 07h |
/tinycpu/ |
7 |
Changed memory to fix bound check error
Decreased size of RAM since 4096 bytes of RAM would require an FPGA with more than 32K flip-flops (mine has ~4000) |
earlz |
4439d 09h |
/tinycpu/ |
6 |
Reworked memory code to hopefully synthesize better |
earlz |
4439d 13h |
/tinycpu/ |
5 |
Modified registerfile to be dual-port for both read and write |
earlz |
4440d 00h |
/tinycpu/ |