Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TDC core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
TDC core
Commits
3eb48e31
Commit
3eb48e31
authored
Oct 21, 2011
by
Sebastien Bourdeauducq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo: fix BRAM initialization byte order
parent
3837445d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
system.v
demo/boards/spec/rtl/system.v
+4
-4
Makefile
demo/software/bios/Makefile
+7
-7
No files found.
demo/boards/spec/rtl/system.v
View file @
3eb48e31
...
@@ -369,10 +369,10 @@ lm32_top cpu(
...
@@ -369,10 +369,10 @@ lm32_top cpu(
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
bram
#(
bram
#(
.
adr_width
(
14
)
,
.
adr_width
(
14
)
,
.
init0
(
"../../../software/bios/bios.h
1
"
)
,
.
init0
(
"../../../software/bios/bios.h
0
"
)
,
.
init1
(
"../../../software/bios/bios.h
2
"
)
,
.
init1
(
"../../../software/bios/bios.h
1
"
)
,
.
init2
(
"../../../software/bios/bios.h
3
"
)
,
.
init2
(
"../../../software/bios/bios.h
2
"
)
,
.
init3
(
"../../../software/bios/bios.h
4
"
)
.
init3
(
"../../../software/bios/bios.h
3
"
)
)
bram
(
)
bram
(
.
sys_clk
(
sys_clk
)
,
.
sys_clk
(
sys_clk
)
,
.
sys_rst
(
sys_rst
)
,
.
sys_rst
(
sys_rst
)
,
...
...
demo/software/bios/Makefile
View file @
3eb48e31
...
@@ -4,19 +4,19 @@ include $(MMDIR)/software/include.mak
...
@@ -4,19 +4,19 @@ include $(MMDIR)/software/include.mak
OBJECTS
=
crt0.o main.o boot.o
OBJECTS
=
crt0.o main.o boot.o
SEGMENTS
=
-j
.text
-j
.data
-j
.rodata
SEGMENTS
=
-j
.text
-j
.data
-j
.rodata
all
:
bios.bin bios.h1 bios.h2 bios.h3 bios.h4
all
:
bios.bin bios.h0 bios.h1 bios.h2 bios.h3
bios.h0
:
bios.bin
$(MMDIR)
/tools/bin2hex
$<
$@
4096 4
bios.h1
:
bios.bin
bios.h1
:
bios.bin
$(MMDIR)
/tools/bin2hex
$<
$@
4096
1
$(MMDIR)
/tools/bin2hex
$<
$@
4096
3
bios.h2
:
bios.bin
bios.h2
:
bios.bin
$(MMDIR)
/tools/bin2hex
$<
$@
4096 2
$(MMDIR)
/tools/bin2hex
$<
$@
4096 2
bios.h3
:
bios.bin
bios.h3
:
bios.bin
$(MMDIR)
/tools/bin2hex
$<
$@
4096 3
$(MMDIR)
/tools/bin2hex
$<
$@
4096 1
bios.h4
:
bios.bin
$(MMDIR)
/tools/bin2hex
$<
$@
4096 4
%.bin
:
%.elf
%.bin
:
%.elf
$(OBJCOPY)
$(SEGMENTS)
-O
binary
$<
$@
$(OBJCOPY)
$(SEGMENTS)
-O
binary
$<
$@
...
@@ -33,7 +33,7 @@ depend:
...
@@ -33,7 +33,7 @@ depend:
makedepend
-Y
--
$(CFLAGS)
--
*
.c
makedepend
-Y
--
$(CFLAGS)
--
*
.c
clean
:
clean
:
rm
-f
*
.o bios.elf bios.bin bios.h
1 bios.h2 bios.h3 bios.h4
.
*
~
*
~ Makefile.bak
rm
-f
*
.o bios.elf bios.bin bios.h
0 bios.h1 bios.h2 bios.h3
.
*
~
*
~ Makefile.bak
# DO NOT DELETE
# DO NOT DELETE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment