Commit Graph

220 Commits

Author SHA1 Message Date
Byron Lathi
e08e839d01 New test program 2022-12-22 22:39:43 -05:00
Byron Lathi
cf9aef64ac First stab at getting sdram working 2022-12-22 20:25:32 -05:00
Byron Lathi
772f8ff13f Update gitignore 2022-12-21 20:49:27 -05:00
Byron Lathi
df80fe0803 throw some stuff on.
This will have to be changed, some things like the VGA connector will
not work because they will interfere with the cpu adapter.

It may be worth thinking about making these smaller and not including
the ethernet for example, since that will not come for a while.

The only things we really need to start are the SD card and serial port.
2022-12-21 19:13:00 -05:00
Byron Lathi
b8161e3082 Add LED module and address decoding; disable LA
The Logic analyzer isn't that useful anyway since it does not track
rising and falling edges.
2022-12-20 19:26:24 -05:00
Byron Lathi
aefa3d23f3 remove dangling comma 2022-12-20 17:33:58 -05:00
Byron Lathi
366c6c9b6e Remove gitlab ci 2022-12-20 17:29:15 -05:00
Byron Lathi
12fb6283cc Get block rom working 2022-12-20 17:26:59 -05:00
Byron Lathi
52de8d3eb3 Get block rom kind of working 2022-12-20 15:38:55 -05:00
Byron Lathi
19b13164e9 RWB and ADDR are inputs, not outputs! 2022-12-19 23:43:45 -05:00
Byron Lathi
507d783a0c remove lock 2022-12-19 23:15:12 -05:00
Byron Lathi
4061afcce2 Update gitignore 2022-12-19 23:13:33 -05:00
Byron Lathi
09e31fe7ab Start over pretty much. 2022-12-19 23:12:22 -05:00
Byron Lathi
3a70c4f523 Ignore gerbers 2022-10-12 18:52:12 -05:00
Byron Lathi
44b324a768 Change drill output folder 2022-10-12 18:51:40 -05:00
Byron Lathi
7341973620 Redo shield, removing FPGA
Don't have the FPGA on the shield, just have it be a board that plugs
into the FPGA.

Don't mind the component and footprint choices yet, I still need to
figure out exactly which parts to use.
2022-10-12 18:50:42 -05:00
Byron Lathi
0256a85acc Create Efinix Adapter
Split the project into two parts, the adapter will connect the cpu
directly to the FPGA, and the shield will house all of the peripherals.

I will get the adapter first so that I can get things like sdram
working first, and then make the shield with things like SD card, USB,
maybe even ethernet and VGA. Basically anthing since it's connected to
an FPGA.
2022-10-12 18:01:58 -05:00
Byron Lathi
6e650e627f Change CI to ignore fpga build, kicad to symlink
Did not automate tests with efinix yet.
2022-10-04 17:25:42 -05:00
Byron Lathi
fcae23785e Throw everything up
I think that previously, I had not actually commited any of this to git.
This adds all of the new effinix stuff that I had been working on for
months.

The gist of all of this is that the intel fpga is expensive and does not
exist, whereas the effinix ones are not as expensive and more existant.
This redoes the project to use the dev board, as well as a custom board
that I may or may not make.
2022-10-04 17:15:49 -05:00
Byron Lathi
5c72c574e5 Change link file to output flat binary 2022-04-21 17:37:12 -05:00
Byron Lathi
fcbf45f7ea Merge branch 'bootloader' into 'master'
Add bootloader, change ci to use custom cc65

See merge request bslathi19/super6502!16
2022-04-20 19:02:02 +00:00
Byron Lathi
1a64fa4d62 Change kernel format to bin for merge
We don't have the bootloader reading o65 files right now, so we need to
keep the kernel as a bin file until that is added.
2022-04-20 13:54:07 -05:00
Byron Lathi
1b08d25ce1 Update makefile for tests
use the local sim65 instead of the installed one which doesn't exist
2022-04-20 12:59:32 -05:00
Byron Lathi
9de3c5b1fa update ci 2022-04-20 12:49:23 -05:00
Byron Lathi
0e98f7536b update ci 2022-04-20 12:46:45 -05:00
Byron Lathi
aa717685e3 Use our own toolchain instead of the one in the image
Now that we are adding our own target we can compile our own toolchain
instead of using the stock one. This does mean that there isn't really a
purpose to using the alpine cc65 image though
2022-04-20 12:41:20 -05:00
Byron Lathi
686630e79f Remove unused code to make code smaller
These might need to be added back eventually.
2022-04-19 15:35:22 -05:00
Byron Lathi
c7ff69a1a0 Update .gitlab-ci.yml file 2022-04-19 20:30:27 +00:00
Byron Lathi
7b84d8a9c2 Update .gitlab-ci.yml file 2022-04-19 20:27:25 +00:00
Byron Lathi
25883aa3cc Update .gitlab-ci.yml file 2022-04-19 20:09:32 +00:00
Byron Lathi
bd748cab86 Update .gitlab-ci.yml file 2022-04-19 20:08:10 +00:00
Byron Lathi
04346ed625 Update .gitlab-ci.yml file
Add bootloader.hex as an artifact for the FPGA build
2022-04-19 20:05:53 +00:00
Byron Lathi
a836643807 Disable in system memory editor for ROM
Now that the ROM is just a bootloader and the kernel is stored on the SD
card, we do not need to be constantly changing the ROM.

Disabling the memory editor dramatically reduces compilation time which
will be useful when implementing FPGA features in the future.
2022-04-19 14:47:19 -05:00
Byron Lathi
ff8078fac7 Program ROM with bootloader
Replaces the ROM image with the bootloader instead of bootrom, which no
longer exists.
2022-04-19 13:46:57 -05:00
Byron Lathi
f3c7ac9696 Replace bios with bootloader, don't use bootsector
Instead of using the bootsector to load a bootloader, just put the
bootloader in the ROM and call it a day. It looks for a file on the SD
card in the root directory named `kernel.bin` and loads it into memory.

This is not a perfect solution, as the kernel will grow larger and the
kernel load address will have to change. At this point I could add back
the bootloader, but that is for later.

Also the bootloader is just a copy of the kernel, so that can be trimmed
down a lot.
2022-04-19 10:34:19 -05:00
Byron Lathi
f664d59497 Copy kernel into root folder after build
This way it gets copied over to the SD card when installing.
2022-04-19 10:33:27 -05:00
Byron Lathi
15a0917bb4 Change kernel to use none target
I forgot that the CI still uses the stock cc65 which doesn't support my
target. The kernel doesn't really need this target though, only the user
programs.
2022-04-18 20:31:11 -05:00
Byron Lathi
4e2e030e52 Add scripts
automates the process of overwriting the boot sector of the SD card and
copying over the filesystem.
2022-04-18 20:29:10 -05:00
Byron Lathi
24d5a8c8ac Add fsdir 2022-04-18 20:29:00 -05:00
Byron Lathi
9f1d527a7c Change kernel link type
Kernel is now compiled and linked into a raw binary instead of intel
hex. This raw binary can be loaded into the correct address by the
bootloader.

I wanted this to be an o65 file, but ld65 kept complaining about it.
Honestly though having this be a straight binary makes it easier to
load, but we can't relocate it.
2022-04-18 20:27:48 -05:00
Byron Lathi
0fadc6a80f Add sw makefile which compiles all subtargets
Usefull now that we have like 4 different folders that need to be
compiled slightly differently
2022-04-18 20:27:05 -05:00
Byron Lathi
72b83d739d Remove unused define 2022-04-18 20:26:59 -05:00
Byron Lathi
9dd460a47f Add preliminary bootloader
This bootloader right now just prints the letter A, but should be
capable of reading blocks from the SD card into memory.
2022-04-18 20:25:08 -05:00
Byron Lathi
54328722ab Rename boot to bios, add sd call
Adds a call that you can make to the BIOS to read sd blocks. Useful for
the bootloader where there is not much space
2022-04-18 20:24:29 -05:00
Byron Lathi
64f6f0b397 Add top level makefile for sw 2022-04-18 12:50:19 -05:00
Byron Lathi
12284d19a9 Create boot environment
The boot environment will read the boot sector from the sd card, verify
that it has the boot signature at the end, then jump to the start of it.

From there, there should be a bootloader written to the boot segment
that can handle the rest.

It might be tight to fit everything into the boot sector but do remember
that you do not have to initialize or select the sd card, and those
functions take up a lot of space.
2022-04-18 12:43:29 -05:00
Byron Lathi
2ff3caccc6 Change user programs to use super6502 target
The target library is a copy of `none` right now but will be built out
later.
2022-04-18 12:12:43 -05:00
Byron Lathi
373fade79f Merge branch 'filesystem' into 'master'
Improve file system code

See merge request bslathi19/super6502!15
2022-04-18 17:10:09 +00:00
Byron Lathi
a9d9bc0619 Allow subdirectories
Can now break apart a filepath into the parent directories and search
for each one of them (not recursively!).
2022-04-17 20:18:43 -05:00
Byron Lathi
52f631e558 Allow finding files in the root directory
This allows you to find the cluster number of a file in the root
directory by name. The main program is a simple demo where you can type
in a filename and it will tell you the cluster number.
2022-04-17 18:12:13 -05:00