Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cMIPS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roberto Hexsel
cMIPS
Commits
f449ae9a
Commit
f449ae9a
authored
Feb 24, 2016
by
Roberto Hexsel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increased ROM and RAM sizes
parent
6b2b5608
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
cMIPS/tests/uart_irx.c
cMIPS/tests/uart_irx.c
+4
-5
cMIPS/vhdl/packageMemory.vhd
cMIPS/vhdl/packageMemory.vhd
+2
-2
No files found.
cMIPS/tests/uart_irx.c
View file @
f449ae9a
#include "cMIPS.h"
typedef
struct
control
{
// control register fields (uses only ls byte)
int
ign
:
24
+
3
,
// ignore uppermost bits
int
ign
:
24
,
// ignore uppermost bits
rts
:
1
,
// Request to Send output (bit 7)
ign2
:
2
,
// bits 6,5 ignored
intTX
:
1
,
// interrupt on TX buffer empty (bit 4)
intRX
:
1
,
// interrupt on RX buffer full (bit 3)
speed
:
3
;
// 4,8,16..256 tx-rx clock data rates (bits 0..2)
}
Tcontrol
;
typedef
struct
status
{
// status register fields (uses only ls byte)
#if 1
int
s
;
#else
int
ign
:
24
,
// ignore uppermost bits
ign7
:
1
,
// ignored (bit 7)
txEmpty
:
1
,
// TX register is empty (bit 6)
...
...
@@ -20,7 +19,6 @@ typedef struct status { // status register fields (uses only ls byte)
ign2
:
1
,
// ignored (bit 2)
framing
:
1
,
// framing error (bit 1)
overun
:
1
;
// overun error (bit 0)
#endif
}
Tstatus
;
#define RXfull 0x00000020
...
...
@@ -55,6 +53,7 @@ int main(void) { // receive a string through the UART serial interface
uart
=
(
void
*
)
IO_UART_ADDR
;
// bottom of UART address range
ctrl
.
ign
=
0
;
ctrl
.
rts
=
0
;
ctrl
.
intTX
=
0
;
ctrl
.
intRX
=
1
;
ctrl
.
speed
=
1
;
// operate at 1/2 of the highest data rate
...
...
cMIPS/vhdl/packageMemory.vhd
View file @
f449ae9a
...
...
@@ -41,9 +41,9 @@ package p_MEMORY is
-- begin DO NOT change these names as several scripts depend on them --
-- you may change the values, not names neither formatting --
constant
x_INST_BASE_ADDR
:
reg32
:
=
x"00000000"
;
constant
x_INST_MEM_SZ
:
reg32
:
=
x"0000
2
000"
;
constant
x_INST_MEM_SZ
:
reg32
:
=
x"0000
4
000"
;
constant
x_DATA_BASE_ADDR
:
reg32
:
=
x"00010000"
;
constant
x_DATA_MEM_SZ
:
reg32
:
=
x"0000
2
000"
;
constant
x_DATA_MEM_SZ
:
reg32
:
=
x"0000
8
000"
;
constant
x_IO_BASE_ADDR
:
reg32
:
=
x"0F000000"
;
constant
x_IO_MEM_SZ
:
reg32
:
=
x"00002000"
;
constant
x_IO_ADDR_RANGE
:
reg32
:
=
x"00000020"
;
...
...
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