Last change
on this file since 888 was
887,
checked in by cfuguet, 10 years ago
|
reconf: add test for the recovery routing function on the dspin_router
- The test performs a reconfiguration of a cycle-free contour around a
blackhole in a 3x3 platform. The blackhole (faulty routers) is in
the cluster (1,1).
- Introduce a reconf:xicu driver in the softs directory.
For now this driver contains only a getter/setter for the
configuration registers in the reconf:vci_xicu.
|
File size:
616 bytes
|
Line | |
---|
1 | /* |
---|
2 | * \file xcu.c |
---|
3 | * \author Cesar Fuguet <cesar.fuguet-tortolero@lip6.fr> |
---|
4 | * \date November 12, 2014 |
---|
5 | */ |
---|
6 | #include <xcu.h> |
---|
7 | #include <soclib/xicu.h> |
---|
8 | #include <io.h> |
---|
9 | #include <hard_config.h> |
---|
10 | #include <cpu.h> |
---|
11 | |
---|
12 | #define XCUREG(func,idx) (SEG_XCU_BASE + (XICU_REG((func),(idx)) << 2)) |
---|
13 | |
---|
14 | void xcu_set_config(int x, int y, int idx, uint32_t val) |
---|
15 | { |
---|
16 | iowrite32(CLUSTER_BASE(x,y) | XCUREG(XICU_CFG_REG, idx), val); |
---|
17 | } |
---|
18 | |
---|
19 | uint32_t xcu_get_config(int x, int y, int idx) |
---|
20 | { |
---|
21 | return ioread32(CLUSTER_BASE(x,y) | XCUREG(XICU_CFG_REG, idx)); |
---|
22 | } |
---|
23 | |
---|
24 | /* |
---|
25 | * vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab |
---|
26 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.