Commit Graph

35 Commits

Author SHA1 Message Date
Bastian Löher
b2b67d191c Add pseudo instructions in assembler. Add step 14 with pseudo instructions. 2023-02-05 01:57:18 +01:00
Bastian Löher
ba88db9a79 Add step 13 (makeshift wait function). Bug in Amaranth got fixed, so can use Repl() again. 2023-01-18 02:36:49 +01:00
Bastian Löher
47fe7bee36 Add step 12 in top. 2023-01-16 10:30:13 +01:00
Bastian Löher
33760eb512 Merge pull request #1 from bl0x/add-license-1
Create LICENSE
2023-01-13 01:57:57 +01:00
Bastian Löher
5ec7dc04aa Create LICENSE 2023-01-13 01:57:36 +01:00
Bastian Löher
c0c7cda799 Add README. 2023-01-13 01:51:00 +01:00
Bastian Löher
10595b068d Avoid bug when using Repl. 2023-01-13 01:28:02 +01:00
Bastian Löher
89559d21aa Add boards directory with a generic top and platform specific modules. 2023-01-12 22:38:33 +01:00
Bastian Löher
22f228e3e8 Simplify cpu a bit. 2023-01-12 21:50:10 +01:00
Bastian Löher
abdfbf2106 Split soc into several modules. 2022-12-07 01:41:08 +01:00
Bastian Löher
b133b7ccd3 Add step10. LUI AUIPC. 2022-12-07 00:49:51 +01:00
Bastian Löher
1452f27819 Fix up encodeI. 2022-12-07 00:49:13 +01:00
Bastian Löher
791f99dbae Improve riscv_assembler: fix encodeI, support for 0b and 0x literals. 2022-12-07 00:41:35 +01:00
Bastian Löher
47cb30695d Add step9 / branches. 2022-12-05 12:54:18 +01:00
Bastian Löher
c4af443ef0 Add 08_jumps. 2022-12-05 12:25:33 +01:00
Bastian Löher
f920a83be7 Change pc to point to address instead of intstruction index. 2022-12-05 12:13:42 +01:00
Bastian Löher
8452062785 Add rest of the instructions. 2022-12-05 12:07:45 +01:00
Bastian Löher
a3c011ee31 Start step7 with riscv assembler. 2022-12-05 10:58:54 +01:00
Bastian Löher
25e30c4675 fsm must run in 'slow' domain. alu must be combinatorial. 2022-12-05 10:44:03 +01:00
Bastian Löher
4e74cd693d Add slow_sim parameter to clockworks. Add step6 / alu. 2022-12-05 08:38:34 +01:00
Bastian Löher
9953f650e1 Whitespace. 2022-12-05 04:05:29 +01:00
Bastian Löher
1142905f01 Add step5. 2022-12-05 04:05:18 +01:00
Bastian Löher
142281b3a9 Reorder. 2022-12-05 03:34:02 +01:00
Bastian Löher
70fea04527 Simplify signals. Export operators as signals for simulation. 2022-12-05 03:33:27 +01:00
Bastian Löher
21b1caad54 Working step4. 2022-12-05 02:37:30 +01:00
Bastian Löher
77dd6812b4 Fix SW instruction (swap rs1 rs2) in assembler. 2022-12-05 01:17:44 +01:00
Bastian Löher
5a8b018928 Move clockworks to lib. Add env.sh for PYTHONPATH. Fix step03. 2022-12-05 00:38:11 +01:00
Bastian Löher
a30d0245f7 Fixup. 2022-12-03 02:54:02 +01:00
Bastian Löher
7e23408991 Support for labels. 2022-12-03 02:50:37 +01:00
Bastian Löher
4222ee9e9e Support for abi names. Some system ops. 2022-12-03 02:37:41 +01:00
Bastian Löher
f7b533dc11 Start riscv assembler. 2022-12-03 02:12:39 +01:00
Bastian Löher
446aed23d5 Add step3. 2022-12-03 02:12:22 +01:00
Bastian Löher
e95a456d1a Add step2. 2022-12-01 16:48:41 +01:00
Bastian Löher
a105362b0a Factor out SOC and add bench test. 2022-12-01 16:07:26 +01:00
Bastian Löher
03c9fadba6 Initial commit. 2022-12-01 15:29:39 +01:00