Skip to content

Commit 816ce93

Browse files
authored
Merge pull request #941 from Logic-Design-Services/check-component-action
ci,doc: add vivado component consistency check.
2 parents 67dfa32 + a7c1665 commit 816ce93

File tree

3 files changed

+141
-1
lines changed

3 files changed

+141
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Consistency checks
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
Check-Vivado-component:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: "Checkout repository"
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 1
15+
submodules: 'recursive'
16+
17+
- name: "Check Vivado component"
18+
run: |
19+
scripts/gen_vivado_component.py
20+
cd scripts && ./update_reg_map
21+
git diff --exit-code || (echo "Vivado component file or register map products are not up-to-date. Either run scripts/gen_vivado_component.py and scripts/update_reg_map or download the files from this job's artifacts."; exit 1)

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,18 @@ See the instructions below in "How to run CTU CAN FD testbench" subsection.
122122

123123
## How to integrate CTU CAN FD RTL ?
124124

125+
### Manual integration
126+
127+
In command line / script based tools, integrate CTU CAN FD by:
125128
1. Compile files from `src/slf_rtl.yml` YAML file into `ctu_can_fd_rtl` VHDL library.
126-
Compile the files in order they are listed in `src/slf_rtl.yml`.
129+
Compile the files in order they are listed in `src/slf_rtl.yml`. This is typically
130+
done by TCL command like `read_vhdl` in various ASIC or FPGA toolchains.
127131
2. Integrate `can_top_level` entity in your design. See [![System architecture](https://img.shields.io/badge/System_architecture--blue.svg)]( https://logic-design-services.github.io/CTU-CAN-FD/ctu_can_fd_architecture.pdf) for details of CTU CAN FD interface.
128132

133+
### Vivado integration
134+
135+
If you preffer schematic design, you can use Vivado schematic component in `src/component.xml`.
136+
129137

130138
## How to run CTU CAN FD testbench ?
131139

doc/core/template.lyx

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
#LyX 2.3 created this file. For more info see http://www.lyx.org/
2+
\lyxformat 544
3+
\begin_document
4+
\begin_header
5+
\save_transient_properties true
6+
\origin unavailable
7+
\textclass book
8+
\begin_preamble
9+
\usepackage{fancyhdr}
10+
\pagestyle{fancy}
11+
\usepackage{colortbl}
12+
\definecolor{gray}{RGB}{230,230, 230}
13+
\end_preamble
14+
\use_default_options true
15+
\begin_modules
16+
customHeadersFooters
17+
\end_modules
18+
\maintain_unincluded_children false
19+
\language english
20+
\language_package default
21+
\inputencoding auto
22+
\fontencoding global
23+
\font_roman "default" "default"
24+
\font_sans "default" "default"
25+
\font_typewriter "lmtt" "default"
26+
\font_math "auto" "auto"
27+
\font_default_family sfdefault
28+
\use_non_tex_fonts false
29+
\font_sc false
30+
\font_osf false
31+
\font_sf_scale 100 100
32+
\font_tt_scale 100 100
33+
\use_microtype false
34+
\use_dash_ligatures true
35+
\graphics default
36+
\default_output_format default
37+
\output_sync 0
38+
\bibtex_command default
39+
\index_command default
40+
\paperfontsize default
41+
\spacing other 1.1
42+
\use_hyperref true
43+
\pdf_author "Ille Ondrej"
44+
\pdf_subject "CAN FD IP function"
45+
\pdf_keywords "CAN, Flexible data rate,"
46+
\pdf_bookmarks true
47+
\pdf_bookmarksnumbered false
48+
\pdf_bookmarksopen false
49+
\pdf_bookmarksopenlevel 1
50+
\pdf_breaklinks false
51+
\pdf_pdfborder true
52+
\pdf_colorlinks false
53+
\pdf_backref false
54+
\pdf_pdfusetitle true
55+
\papersize default
56+
\use_geometry true
57+
\use_package amsmath 1
58+
\use_package amssymb 1
59+
\use_package cancel 1
60+
\use_package esint 1
61+
\use_package mathdots 1
62+
\use_package mathtools 1
63+
\use_package mhchem 1
64+
\use_package stackrel 1
65+
\use_package stmaryrd 1
66+
\use_package undertilde 1
67+
\cite_engine basic
68+
\cite_engine_type default
69+
\biblio_style plain
70+
\use_bibtopic false
71+
\use_indices false
72+
\paperorientation portrait
73+
\suppress_date false
74+
\justification true
75+
\use_refstyle 1
76+
\use_minted 0
77+
\index Index
78+
\shortcut idx
79+
\color #008000
80+
\end_index
81+
\leftmargin 2cm
82+
\topmargin 3cm
83+
\rightmargin 2cm
84+
\bottommargin 3cm
85+
\headheight 2cm
86+
\secnumdepth -2
87+
\tocdepth 5
88+
\paragraph_separation skip
89+
\defskip smallskip
90+
\is_math_indent 0
91+
\math_numbering_side default
92+
\quotes_style english
93+
\dynamic_quotes 0
94+
\papercolumns 1
95+
\papersides 1
96+
\paperpagestyle headings
97+
\tracking_changes false
98+
\output_changes false
99+
\html_math_output 0
100+
\html_css_as_file 0
101+
\html_be_strict false
102+
\end_header
103+
104+
\begin_body
105+
106+
\begin_layout Standard
107+
108+
\end_layout
109+
110+
\end_body
111+
\end_document

0 commit comments

Comments
 (0)