View | Details | Raw Unified | Return to bug 450
Collapse All | Expand All

(-)a/litex/build/io.py (-1 / +1 lines)
Lines 64-70 class SDRIO(Special): Link Here
64
64
65
    @staticmethod
65
    @staticmethod
66
    def lower(dr):
66
    def lower(dr):
67
        return InferedSDRIO(dr.i, dr.o, dr.clk, dr.clk_domain)
67
        return InferedSDRIO(dr.i, dr.o, dr.clk)#, dr.clk_domain)
68
68
69
69
70
class SDRInput(SDRIO):  pass
70
class SDRInput(SDRIO):  pass
(-)a/litex/build/sim/core/modules/Makefile (-1 / +2 lines)
Lines 1-5 Link Here
1
include ../variables.mak
1
include ../variables.mak
2
MODULES = xgmii_ethernet ethernet serial2console serial2tcp clocker spdeeprom
2
MODULES = xgmii_ethernet ethernet serial2console serial2tcp clocker spdeeprom \
3
          jtagremote
3
4
4
.PHONY: $(MODULES)
5
.PHONY: $(MODULES)
5
all: $(MODULES)
6
all: $(MODULES)
(-)a/litex/soc/interconnect/csr.py (+2 lines)
Lines 383-388 class CSRStorage(_CompoundCSR): Link Here
383
                self.comb += If(self.re, field_assign)
383
                self.comb += If(self.re, field_assign)
384
            else:
384
            else:
385
                self.comb += field_assign
385
                self.comb += field_assign
386
        print ("CSR Storage add")
387
        self.storage.attr.add(('ram_style', "distributed"))
386
388
387
    def do_finalize(self, busword, ordering):
389
    def do_finalize(self, busword, ordering):
388
        nwords = (self.size + busword - 1)//busword
390
        nwords = (self.size + busword - 1)//busword
(-)a/litex/soc/software/libbase/crc32.c (-2 / +8 lines)
Lines 61-74 static const unsigned int crc_table[256] = { Link Here
61
	0x2d02ef8dL
61
	0x2d02ef8dL
62
};
62
};
63
63
64
#define DO1(buf) crc = crc_table[((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8);
64
        //if (byte != 0 && buf % 0x200 == 0)
65
#define DO1(buf) byte = (*buf); \
66
        if (((unsigned int)buf) >= 0x6b00) \
67
        if (((unsigned int)buf) < 0x6c60) \
68
        printf("crc %9x %02x %08x\n", buf, byte, crc); \
69
        buf++; \
70
            crc = crc_table[((int)crc ^ byte) & 0xff] ^ (crc >> 8);
65
#define DO2(buf)  DO1(buf); DO1(buf);
71
#define DO2(buf)  DO1(buf); DO1(buf);
66
#define DO4(buf)  DO2(buf); DO2(buf);
72
#define DO4(buf)  DO2(buf); DO2(buf);
67
#define DO8(buf)  DO4(buf); DO4(buf);
73
#define DO8(buf)  DO4(buf); DO4(buf);
68
74
69
unsigned int crc32(const unsigned char *buffer, unsigned int len)
75
unsigned int crc32(const unsigned char *buffer, unsigned int len)
70
{
76
{
71
	unsigned int crc;
77
	unsigned int crc, byte;
72
	crc = 0;
78
	crc = 0;
73
	crc = crc ^ 0xffffffffL;
79
	crc = crc ^ 0xffffffffL;
74
	while(len >= 8) {
80
	while(len >= 8) {

Return to bug 450