Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit core collection
Commits
51316628
Commit
51316628
authored
Oct 25, 2011
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_core: added wrc_syscon
parent
1c25e2db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
186 additions
and
0 deletions
+186
-0
build_wb.sh
modules/wrc_core/build_wb.sh
+4
-0
wrc_syscon_wb.wb
modules/wrc_core/wrc_syscon_wb.wb
+182
-0
No files found.
modules/wrc_core/build_wb.sh
0 → 100755
View file @
51316628
#!/bin/bash
mkdir
-p
doc
wbgen2
-D
./doc/wrc_syscon.html
-p
wrc_syscon_pkg.vhd
-H
record
-V
wrc_syscon_wb.vhd
--cstyle
defines
--lang
vhdl
-K
../../sim/wrc_syscon_regs.vh wrc_syscon_wb.wb
modules/wrc_core/wrc_syscon_wb.wb
0 → 100644
View file @
51316628
-- -*- Mode: LUA; tab-width: 2 -*-
peripheral {
name = "WR Core System Controller";
description = "";
prefix = "sysc";
hdl_entity = "wrc_syscon_wb";
reg {
name = "Syscon reset register";
prefix = "RSTR";
field {
name = "Reset trigger";
prefix = "HRST";
description = "Write 0xdeadbeef to reset the WR Core";
type = PASS_THROUGH;
size = 32;
};
};
reg {
name = "GPIO Set/Readback Register";
prefix = "GPSR";
field {
name = "Status LED";
description = "Write 1: turn on the Status LED";
prefix = "led_stat";
type = MONOSTABLE;
};
field {
name = "Link LED";
description = "Write 1: turn on the Link LED";
prefix = "led_link";
type = MONOSTABLE;
};
field {
name = "FMC I2C bitbanged SCL";
prefix = "fmc_scl";
description = "write 1: Set FMC SCL line to 1 (pullup)\
read : returns the current status of the SCL line.";
type = BIT;
access_bus = READ_WRITE;
access_dev = READ_WRITE;
load = LOAD_EXT;
};
field {
name = "FMC I2C bitbanged SDA";
prefix = "fmc_sda";
description = "write 1: Set FMC SDA line to 1 (pullup)\
read : returns the current status of the SCL line.";
type = BIT;
access_bus = READ_WRITE;
access_dev = READ_WRITE;
load = LOAD_EXT;
};
field {
name = "Network AP reset";
description = "write 1: resets the networking subsystem";
prefix = "Net_RST";
type = MONOSTABLE;
};
field {
name = "SPEC Pushbutton 1 state";
prefix = "Btn1";
description = "read : returns the state of the Button 1 on the SPEC board";
type = BIT;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
field {
name = "SPEC Pushbutton 2 state";
prefix = "Btn2";
description = "read : returns the state of the Button 2 on the SPEC board";
type = BIT;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
};
reg {
name = "GPIO Clear Register";
prefix = "GPCR";
field {
name = "Status LED";
description = "Write 1: turn on the Status LED";
prefix = "led_stat";
type = MONOSTABLE;
};
field {
name = "Link LED";
description = "Write 1: turn on the Link LED";
prefix = "led_link";
type = MONOSTABLE;
};
field {
name = "FMC I2C bitbanged SCL";
prefix = "fmc_scl";
description = "write 1: Set FMC SCL line to 1 (pullup)\
read : returns the current status of the SCL line.";
type = MONOSTABLE;
};
field {
name = "FMC I2C bitbanged SDA";
prefix = "fmc_sda";
description = "write 1: Set FMC SDA line to 1 (pullup)\
read : returns the current status of the SCL line.";
type = MONOSTABLE;
};
};
reg {
name = "Hardware Feature Register";
prefix = "HWFR";
field {
name = "Memory size";
prefix = "MEMSIZE";
size = 4;
description = "Size of installed memory: 0 = 64 kB ... 0xf = 1024 kB";
type = SLV;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
};
reg {
name = "Timer Control Register";
prefix = "TCR";
field {
name = "Timer Divider";
description = "Division for obtain 1 millisecond ticks from the system clock: \
<b>f_tick = f_clk_sys / (TDIV * 256)</b>";
prefix = "TDIV";
size = 12;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
field {
name = "Timer Enable";
description = "write 1: enable timer\
write 0: disable timer";
prefix = "ENABLE";
type = BIT;
access_bus = READ_WRITE;
access_dev = READ_ONLY;
align = 31;
};
};
reg {
name = "Timer Counter Value Register";
prefix = "TVR";
field {
name = "Timer Counter Value";
size = 32;
type =SLV;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
};
};
\ No newline at end of file
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