URL
https://opencores.org/ocsvn/mblite/mblite/trunk
Subversion Repositories mblite
Compare Revisions
- This comparison shows the changes necessary to convert path
/mblite/trunk/sw
- from Rev 7 to Rev 9
- ↔ Reverse comparison
Rev 7 → Rev 9
/util/bin2vhd_4x8b.c
164,11 → 164,6
di1 <= dat_i(3*WIDTH_g/4 -1 DOWNTO WIDTH_g/2);\n\ |
di0 <= dat_i( WIDTH_g -1 DOWNTO 3*WIDTH_g/4);\n\ |
\n\ |
do3 <= ram3(TO_INTEGER(UNSIGNED(adr_i)));\n\ |
do2 <= ram2(TO_INTEGER(UNSIGNED(adr_i)));\n\ |
do1 <= ram1(TO_INTEGER(UNSIGNED(adr_i)));\n\ |
do0 <= ram0(TO_INTEGER(UNSIGNED(adr_i)));\n\ |
\n\ |
PROCESS(clk_i)\n\ |
BEGIN\n\ |
-- wre: 3 downto 0, while di0..di3 in byte reversed format\n\ |
186,6 → 181,10
IF wre_i(3) = '1' THEN\n\ |
ram0(TO_INTEGER(UNSIGNED(adr_i))) <= di0;\n\ |
END IF;\n\ |
do3 <= ram3(TO_INTEGER(UNSIGNED(adr_i)));\n\ |
do2 <= ram2(TO_INTEGER(UNSIGNED(adr_i)));\n\ |
do1 <= ram1(TO_INTEGER(UNSIGNED(adr_i)));\n\ |
do0 <= ram0(TO_INTEGER(UNSIGNED(adr_i)));\n\ |
END IF;\n\ |
END IF;\n\ |
END PROCESS;\n\ |
/util/Makefile
9,5 → 9,9
|
gcc mem2bin.c -o mem2bin |
|
gcc bin2vhd_4x8b.c -o bin2vhd_4x8 |
|
gcc bin2vhd_32b.c -o bin2vhd_32b |
|
clean: |
@rm -f bin2mem bin2mem.exe bin2mem4 bin2mem4.exe bin2rom bin2rom.exe mem2bin mem2bin.exe |