Skip to content

Commit

Permalink
Merge pull request #194 from anton-malakhov/oscilloscope-polishing2
Browse files Browse the repository at this point in the history
Fixed simulation, enchanced CI, polishing
  • Loading branch information
yuri-panchul authored Nov 21, 2024
2 parents 17f6cda + 4ea2af2 commit b4643db
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/synthesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

env:
USER: root
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
linux-testing:
Expand All @@ -26,12 +25,18 @@ jobs:
- tool: quartus
imagerepo: ghcr.io/raetro/quartus
imagever: 21.1.1
boards: 43
boards: terasic_sockit
labs: 12345
- tool: quartus
imagerepo: ghcr.io/raetro/quartus
imagever: 17.1
boards: de10_lite omdazz
labs: 12345
- tool: quartus
imagerepo: ghcr.io/raetro/quartus
imagever: 13.0sp1
boards: 10 36
# TODO: omdazz_epm570_quartus_13_1_or_older
boards: de2_115 de0 rzrd_pmod_mic3
labs: 12345
steps:
- name: Checkout
Expand All @@ -45,7 +50,7 @@ jobs:
set -ex; cd *${GITHUB_SHA}
echo >scripts/steps/04_configure_fpga.source_bash # disable programmator
for b in ${{ matrix.boards }}; do
echo -e "$b\ny\n" | ./check_setup_and_choose_fpga_board.bash
echo "$b" > fpga_board_selection
for x in labs/[${{ matrix.labs }}]_*/*_*_*/03_synthesize_for_fpga.bash; do
pushd `dirname $x`
echo | ./`basename $x`
Expand Down
2 changes: 1 addition & 1 deletion boards/terasic_sockit/board_specific_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module board_specific_top
.w_key ( w_key ),
.w_sw ( w_sw ),
.w_led ( w_led ),
.w_digit ( 1 /* w_digit */ ),
.w_digit ( 2 /* w_digit */ ),
.w_gpio ( 1 /* w_gpio */ ),

.screen_width ( screen_width ),
Expand Down
2 changes: 1 addition & 1 deletion labs/3_music/3_0_oscilloscope/lab_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module lab_top

// Excercise 1: Implement Zoom by x-axis with keys
// Excercise 2: Optimize to reduce bits of bufy
assign white = x < vldx // Design practice: Check if element of bufy is initialized
assign white = x <= vldx // Design practice: Check if element of bufy is initialized
&& (x>>2) < (distance[19-:w_x])
&& (y>>3) == (midy - bufy[(x>>2)])>>3 // draw bolder lines with shift by 3 bits
&& x < screen_width && y < screen_height; // do not draw outside the screen
Expand Down
2 changes: 1 addition & 1 deletion peripherals/tm1638_registers.sv
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module tm1638_registers
localparam static_hex = 1'b1;
`endif

wire [w_seg - 1:0] init76543210[w_digit] =
wire [w_digit-1:0][w_seg - 1:0] init76543210 =
//hgfedcba --a--
'{'b00111111, // 0 | |
'b00000110, // 1 f b
Expand Down
4 changes: 2 additions & 2 deletions scripts/steps/00_setup_icarus.source_bash
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ run_icarus_verilog ()
shopt -s nullglob

iverilog -g2005-sv -s tb \
-I .. -I "$lab_dir/common" \
../*.sv "$lab_dir/common"/*.sv \
-I .. -I "$lab_dir/common" -I "$package_dir/peripherals" \
../*.sv "$lab_dir/common"/*.sv "$package_dir/peripherals"/*.sv \
../*.v \
2>&1 | tee "$log"

Expand Down

0 comments on commit b4643db

Please sign in to comment.