Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
wr2rf-vme
Commits
5c828760
Commit
5c828760
authored
Dec 09, 2021
by
John Robert Gill
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
911780b5
5f80419a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
3 deletions
+31
-3
README
hdl/syn/wr2rf_vme/README
+11
-1
board.c
software/libwr2rf/board.c
+4
-0
api.h
software/libwr2rf/libwr2rf/api.h
+4
-0
wr2rf.c
software/libwr2rf/wr2rf.c
+12
-2
No files found.
hdl/syn/wr2rf_vme/README
View file @
5c828760
To generate the wr2rf_vme fpga design, you must:
- clone the repository and checkout submodules
$ git clone https://ohwr.org/project/wr2rf-vme.git
$ cd wr2rf-vme
$ git submodule init
$ git submodule update
Be aware that some submodules require access permission from SY-RF. In addtion,
please check the root README, as it contains details to rebuild the RFNCO and IQmod IPcores.
Normally this isn't required.
- run hdlmake in the current syn directory and generate the list of file
dependencies - specifically - files.tcl
$ cd hdl/syn/wr2rf_vme
$ hdlmake
$ make files.tcl
...
...
software/libwr2rf/board.c
View file @
5c828760
...
...
@@ -1364,6 +1364,8 @@ libwr2rf_configure_softstart_sel(struct libwr2rf_dev *dev, unsigned sel)
unsigned
addr
=
WR2RF_VME_REGS_INIT
+
WR2RF_INIT_REGS_SOFTSTART
;
switch
(
sel
)
{
case
LIBWR2RF_SOFTSTART_NONE_SEL
:
break
;
case
LIBWR2RF_RF1T1_SOFTSTART_SEL
:
break
;
case
LIBWR2RF_RF1T2_SOFTSTART_SEL
:
...
...
@@ -1386,6 +1388,8 @@ libwr2rf_configure_softstop_sel(struct libwr2rf_dev *dev, unsigned sel)
unsigned
addr
=
WR2RF_VME_REGS_INIT
+
WR2RF_INIT_REGS_SOFTSTOP
;
switch
(
sel
)
{
case
LIBWR2RF_SOFTSTOP_NONE_SEL
:
break
;
case
LIBWR2RF_RF1T1_SOFTSTOP_SEL
:
break
;
case
LIBWR2RF_RF1T2_SOFTSTOP_SEL
:
...
...
software/libwr2rf/libwr2rf/api.h
View file @
5c828760
...
...
@@ -170,10 +170,14 @@ int libwr2rf_configure_lemo_debug(struct libwr2rf_dev *dev,
unsigned
lemo
,
unsigned
dbg
);
/* Configuration for soft stop + start output to front panel */
#define LIBWR2RF_SOFTSTOP_NONE_SEL 0x0
#define LIBWR2RF_RF1T1_SOFTSTOP_SEL 0x1
#define LIBWR2RF_RF1T2_SOFTSTOP_SEL 0x2
#define LIBWR2RF_RF2T1_SOFTSTOP_SEL 0x4
#define LIBWR2RF_RF2T2_SOFTSTOP_SEL 0x8
#define LIBWR2RF_SOFTSTART_NONE_SEL 0x0
#define LIBWR2RF_RF1T1_SOFTSTART_SEL 0x1
#define LIBWR2RF_RF1T2_SOFTSTART_SEL 0x2
#define LIBWR2RF_RF2T1_SOFTSTART_SEL 0x4
...
...
software/libwr2rf/wr2rf.c
View file @
5c828760
...
...
@@ -2678,6 +2678,9 @@ lemo_disp_dbg(struct libwr2rf_dev *dev, struct strb *strb, unsigned lemo)
case
LIBWR2RF_RF2T2_SOFTSTOP_SEL
:
strb_printf
(
strb
,
"(2.2)"
);
break
;
case
LIBWR2RF_SOFTSTOP_NONE_SEL
:
strb_printf
(
strb
,
"(none)"
);
break
;
default:
strb_printf
(
strb
,
"(bad)"
);
break
;
...
...
@@ -2703,6 +2706,9 @@ lemo_disp_dbg(struct libwr2rf_dev *dev, struct strb *strb, unsigned lemo)
case
LIBWR2RF_RF2T2_SOFTSTART_SEL
:
strb_printf
(
strb
,
"(2.2)"
);
break
;
case
LIBWR2RF_SOFTSTART_NONE_SEL
:
strb_printf
(
strb
,
"(none)"
);
break
;
default:
strb_printf
(
strb
,
"(bad)"
);
break
;
...
...
@@ -3286,8 +3292,10 @@ api_softstop_sel (struct libwr2rf_dev *dev, int argc, char **argv)
sel
=
LIBWR2RF_RF2T1_SOFTSTOP_SEL
;
else
if
(
strcmp
(
argv
[
1
],
"2.2"
)
==
0
)
sel
=
LIBWR2RF_RF2T2_SOFTSTOP_SEL
;
else
if
(
strcmp
(
argv
[
1
],
"none"
)
==
0
)
sel
=
LIBWR2RF_SOFTSTOP_NONE_SEL
;
else
{
printf
(
"Usage: %s [RF.TU]
\n
"
,
argv
[
0
]);
printf
(
"Usage: %s [RF.TU]
or none
\n
"
,
argv
[
0
]);
return
;
}
}
...
...
@@ -3309,8 +3317,10 @@ api_softstart_sel (struct libwr2rf_dev *dev, int argc, char **argv)
sel
=
LIBWR2RF_RF2T1_SOFTSTART_SEL
;
else
if
(
strcmp
(
argv
[
1
],
"2.2"
)
==
0
)
sel
=
LIBWR2RF_RF2T2_SOFTSTART_SEL
;
else
if
(
strcmp
(
argv
[
1
],
"none"
)
==
0
)
sel
=
LIBWR2RF_SOFTSTART_NONE_SEL
;
else
{
printf
(
"Usage: %s [RF.TU]
\n
"
,
argv
[
0
]);
printf
(
"Usage: %s [RF.TU]
or none
\n
"
,
argv
[
0
]);
return
;
}
}
...
...
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