Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
Wishbone slave generator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
24
Issues
24
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
Wishbone slave generator
Commits
1fb6c1d0
Commit
1fb6c1d0
authored
Jun 15, 2017
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also added versioning to all documentation and file headers.
TODO: except texinfo doc output!
parent
09a4e412
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
0 deletions
+31
-0
cgen_c_headers.lua
cgen_c_headers.lua
+3
-0
cgen_doc.lua
cgen_doc.lua
+3
-0
cgen_doc_latex.lua
cgen_doc_latex.lua
+4
-0
cgen_verilog.lua
cgen_verilog.lua
+3
-0
cgen_vhdl.lua
cgen_vhdl.lua
+3
-0
wbgen2
wbgen2
+15
-0
No files found.
cgen_c_headers.lua
View file @
1fb6c1d0
...
...
@@ -87,6 +87,9 @@ function cgen_c_fileheader()
emit
(
" * File : "
..
options
.
output_c_header_file
);
emit
(
" * Author : auto-generated by wbgen2 from "
..
input_wb_file
);
emit
(
" * Created : "
..
os.date
());
if
(
periph
.
version
~=
nil
)
then
emit
(
" * Version : "
..
string.format
(
'0x%08X'
,
periph
.
version
));
end
emit
(
" * Standard : ANSI C"
);
emit
(
""
);
emit
(
" THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE "
..
input_wb_file
);
...
...
cgen_doc.lua
View file @
1fb6c1d0
...
...
@@ -311,6 +311,9 @@ function cgen_doc_header_and_toc()
emit
(
'<h1 class="heading">'
..
periph
.
hdl_entity
..
'</h1>'
);
emit
(
'<h3>'
..
periph
.
name
..
'</h3>'
);
if
(
periph
.
version
~=
nil
)
then
emit
(
string.format
(
'<h3>[version 0x%08X]</h3>'
,
periph
.
version
));
end
local
t
=
periph
.
description
;
if
(
t
==
nil
)
then
t
=
""
;
end
emit
(
'<p>'
..
string.gsub
(
t
,
"
\n
"
,
"<br>"
)
..
'</p>'
);
...
...
cgen_doc_latex.lua
View file @
1fb6c1d0
...
...
@@ -54,6 +54,10 @@ function cgen_doc_lx_header_and_toc()
emit
(
'
\\
subsection{'
..
periph
.
name
..
'}'
);
emit
(
'
\\
label{subsec:wbgen:'
..
periph
.
prefix
..
'}'
);
if
(
periph
.
version
~=
nil
)
then
emit
(
string.format
(
'\[version 0x%08X\]\\\\'
,
periph
.
version
));
end
local
t
=
periph
.
description
;
if
(
t
==
nil
)
then
t
=
""
;
end
emit
(
string.gsub
(
t
,
"
\n
"
,
"
\\\\
"
));
...
...
cgen_verilog.lua
View file @
1fb6c1d0
...
...
@@ -19,6 +19,9 @@ function cgen_verilog_header()
emit
(
"// File : "
..
options
.
output_hdl_file
);
emit
(
"// Author : auto-generated by wbgen2 from "
..
input_wb_file
);
emit
(
"// Created : "
..
os.date
());
if
(
periph
.
version
~=
nil
)
then
emit
(
"// Version : "
..
string.format
(
'0x%08X'
,
periph
.
version
));
end
emit
(
"// Standard : Verilog 2001"
);
emit
(
"//////////////////////////////////////////////////////////////////////////////////////"
);
emit
(
"// THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE "
..
input_wb_file
);
...
...
cgen_vhdl.lua
View file @
1fb6c1d0
...
...
@@ -200,6 +200,9 @@ function cgen_vhdl_header(file_name)
emit
(
"-- File : "
..
file_name
);
emit
(
"-- Author : auto-generated by wbgen2 from "
..
input_wb_file
);
emit
(
"-- Created : "
..
os.date
());
if
(
periph
.
version
~=
nil
)
then
emit
(
"-- Version : "
..
string.format
(
'0x%08X'
,
periph
.
version
));
end
emit
(
"-- Standard : VHDL'87"
);
emit
(
"---------------------------------------------------------------------------------------"
);
emit
(
"-- THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE "
..
input_wb_file
);
...
...
wbgen2
View file @
1fb6c1d0
...
...
@@ -967,6 +967,9 @@ emit("--------------------------------------------------------------------------
emit
(
"-- File : "
..
e
);
emit
(
"-- Author : auto-generated by wbgen2 from "
..
input_wb_file
);
emit
(
"-- Created : "
..
os.date
());
if
(
periph
.
version
~=
nil
)
then
emit
(
"-- Version : "
..
string.format
(
'0x%08X'
,
periph
.
version
));
end
emit
(
"-- Standard : VHDL'87"
);
emit
(
"---------------------------------------------------------------------------------------"
);
emit
(
"-- THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE "
..
input_wb_file
);
...
...
@@ -1422,6 +1425,9 @@ emit("//////////////////////////////////////////////////////////////////////////
emit
(
"// File : "
..
options
.
output_hdl_file
);
emit
(
"// Author : auto-generated by wbgen2 from "
..
input_wb_file
);
emit
(
"// Created : "
..
os.date
());
if
(
periph
.
version
~=
nil
)
then
emit
(
"// Version : "
..
string.format
(
'0x%08X'
,
periph
.
version
));
end
emit
(
"// Standard : Verilog 2001"
);
emit
(
"//////////////////////////////////////////////////////////////////////////////////////"
);
emit
(
"// THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE "
..
input_wb_file
);
...
...
@@ -1853,6 +1859,9 @@ emit("");
emit
(
" * File : "
..
options
.
output_c_header_file
);
emit
(
" * Author : auto-generated by wbgen2 from "
..
input_wb_file
);
emit
(
" * Created : "
..
os.date
());
if
(
periph
.
version
~=
nil
)
then
emit
(
" * Version : "
..
string.format
(
'0x%08X'
,
periph
.
version
));
end
emit
(
" * Standard : ANSI C"
);
emit
(
""
);
emit
(
" THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE "
..
input_wb_file
);
...
...
@@ -2193,6 +2202,9 @@ emit('</HEAD>');
emit
(
'<BODY>'
);
emit
(
'<h1 class="heading">'
..
periph
.
hdl_entity
..
'</h1>'
);
emit
(
'<h3>'
..
periph
.
name
..
'</h3>'
);
if
(
periph
.
version
~=
nil
)
then
emit
(
string.format
(
'<h3>[version 0x%08X]</h3>'
,
periph
.
version
));
end
local
e
=
periph
.
description
;
if
(
e
==
nil
)
then
e
=
""
;
end
emit
(
'<p>'
..
string.gsub
(
e
,
"
\n
"
,
"<br>"
)
..
'</p>'
);
...
...
@@ -2593,6 +2605,9 @@ end
function
cgen_doc_lx_header_and_toc
()
emit
(
'
\\
subsection{'
..
periph
.
name
..
'}'
);
emit
(
'
\\
label{subsec:wbgen:'
..
periph
.
prefix
..
'}'
);
if
(
periph
.
version
~=
nil
)
then
emit
(
string.format
(
'\[version 0x%08X\]\\\\'
,
periph
.
version
));
end
local
e
=
periph
.
description
;
if
(
e
==
nil
)
then
e
=
""
;
end
emit
(
string.gsub
(
e
,
"
\n
"
,
"
\\\\
"
));
...
...
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