Skip to content

Instantly share code, notes, and snippets.

View rndtrash's full-sized avatar
🐹
hanster :)

Ivan Kuzmenko rndtrash

🐹
hanster :)
View GitHub Profile
// TODO: this module occasionally reads garbage
`define BAUD_RATE 9_600
`define CLOCK 27_000_000
module uart_rx #(TICKS_PER_BIT=2_812) (clk, reset, re, rx, data, received, busy, valid);
input clk;
input reset;
input re;
#include <math.h>
#include <stdio.h>
#include "uthash.h"
#include "utlist.h"
// minus one for extra vertex
#define VOXEL_SIDE 31
#define BITS_PER_SIDE 5
#define VERTEX_MASK 0x1F
NAND booting
Maker Id:0xEC,device id:0xD7.
Maker Id:0x0,device id:0x0.
The bad blocks table needs 559 bytes,1 pages to stored it.
--Latest bad block table stored in block:4150,with verstion:1.
The bad blocks of the nand flash has been fixed!......................
g_pTOC->hsStore.dwStartBlock=0x20
Eboot's vir block: 0x0,phy block:0x0
nk's vir block: 0x20,phy block:0x28
dm's vir block: 0x20,phy block:0x28