Byron Lathi
ed18b381f3
Change "clkdiv" to "tx_clkdiv"
2022-03-14 15:22:18 -05:00
Byron Lathi
264263b0d9
Change "state" to "tx_state" etc.
2022-03-14 15:10:59 -05:00
Byron Lathi
b2344d986e
Add UART interrupts
...
Currently an interrupt is triggered any time there is any activity on
the UART_RXD line, but later it will only trigger once there is data
ready to be read.
2022-03-14 14:57:45 -05:00
Byron Lathi
e70fffb472
Add irq status register
...
Upon receiving an interrupt, the corresponding bit in the interrupt
status register will be set and an IRQ will be raised for the CPU. The
cpu can then respond to the interrupt and clear the interrupt by writing
back to the interrupt status register.
2022-03-14 13:16:09 -05:00
Byron Lathi
26070313f4
Ignore greybox_tmp
2022-03-14 13:15:20 -05:00
Byron Lathi
ff78fd0179
Connect Button 1 to cpu_irqb
...
A maskable interrupt can be generated by pressing button 1, the reset
button remains button 0.
2022-03-14 11:53:45 -05:00
Byron Lathi
4fb73f8e97
Update cs_testbench.sv
...
Add uart_cs and fix error messages
2022-03-14 10:56:15 -05:00
Byron Lathi
cfcf94a875
Integrate uart controller into top level module
...
Adds new chip select for the UART, and a new entry in the data_out mux
for the UART.
2022-03-14 10:45:45 -05:00
Byron Lathi
b48438f6b2
Add write and puts tasks to the uart testbench
...
The write task will transmit a single byte, the puts task will transmit
a string of length n. These do not do any verification, you still have
to look at the output.
2022-03-14 00:04:04 -05:00
Byron Lathi
f8da9206d9
Refactor uart.sv to better allow cpu control
...
Added new signal tx_flag, which indicates whether the transmitter is
ready for new data.
Added status register, which when read will return the tx_flag bit, as
well as others that can be implemented.
Added new state IDLE, which resets the TX flag and allows new data to be
written.
Added code to allow for different baud rates, though it is still fixed
currently.
2022-03-14 00:00:55 -05:00
Byron Lathi
e063e9f6a3
Add basic UART device
...
So far the device only transmits the ASCII set on repeat, but will
become fully featured later.
2022-03-13 19:42:41 -05:00
Byron Lathi
5834f179d2
Ignore more modelsim files
...
Ignore all bak files and msim_transcript
2022-03-13 19:39:14 -05:00
Byron Lathi
c7e8cc3798
Implement enable byte in hw
2022-03-12 21:45:30 -06:00
Byron Lathi
627b6a746a
Add high pair of seven segment displays
...
This also increases the number of registers to 4, one more for the high
pair of displays, and a final one for a mask register which has not been
implemented yet.
2022-03-12 21:24:37 -06:00
Byron Lathi
79675ec773
Clean up modelsim folder
2022-03-12 19:41:08 -06:00
Byron Lathi
28836259e2
Don't track vcd files either
2022-03-12 19:34:43 -06:00
Byron Lathi
b7c92d3117
Don't track signaltap
2022-03-12 19:30:37 -06:00
Byron Lathi
ca4288df66
Change addr_decode test to use new io locations
...
Instead of whatever was there before, the new io locations are ram, rom,
and the hex digits.
2022-03-12 19:25:34 -06:00
Byron Lathi
3d9d340520
Get the FPGA part working
...
This changes some of the clocks, fixes a bug in the seven segment stuff.
2022-03-11 22:55:26 -06:00
Byron Lathi
cdf3da9b13
Add hex drivers
2022-03-11 18:25:55 -06:00
Byron Lathi
ad55f986f5
Add bb_spi_controller
...
Bit banged spi controller, very simple but very slow.
2022-03-08 15:26:01 -06:00
Byron Lathi
e1f50e825d
Ignore gerber output files and folders
2022-03-08 15:25:05 -06:00
Byron Lathi
de320babfc
Fix ground plane not connected
2022-03-08 15:23:20 -06:00
Byron Lathi
16b50dcca7
Add io chip select
2022-03-05 23:15:50 -06:00
Byron Lathi
c70272f9de
Add addr_decode and testbench
2022-03-05 20:11:47 -06:00
Byron Lathi
37e122197f
Refactor CI into one file
...
Remove the downstream stuff and consolidate the hw and sw pipelines into
one.
2022-03-05 19:22:00 -06:00
Byron Lathi
8855bedaf2
Change to directory before running quartus
2022-03-05 19:11:53 -06:00
Byron Lathi
e29bf45ecb
Add fpga ci
2022-03-05 19:00:06 -06:00
Byron Lathi
bc98b67ddf
Add boot rom
2022-03-05 18:12:27 -06:00
Byron Lathi
a096f09fc9
Remove board backups folder
2022-03-05 17:52:51 -06:00
Byron Lathi
aca17a9cf8
Create quartus project
2022-03-05 17:52:42 -06:00
Byron Lathi
b996d93c99
Create quartus project
2022-03-05 16:38:12 -06:00
Byron Lathi
d364c216b8
Create board
2022-03-05 16:25:20 -06:00
Byron Lathi
f0b1ec65c3
Create project
2022-03-05 12:50:54 -06:00