Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
shtaxxx committed Mar 24, 2023
2 parents effa722 + 6b0040b commit 5cc0461
Show file tree
Hide file tree
Showing 1,097 changed files with 8,444 additions and 6,970 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ['3.9', '3.10', '3.11']

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-pythonpath pyverilog numpy
pip install pytest pytest-pythonpath pytest-xdist pyverilog numpy
# Run pytest
- name: Test with pytest
run: |
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ language: python
sudo: false

python:
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11

addons:
apt:
Expand All @@ -14,7 +14,7 @@ addons:
- verilator

install:
- pip install pytest pytest-pythonpath pyverilog numpy
- pip install pytest pytest-pythonpath pytest-xdist pyverilog numpy

script:
- python -m pytest tests examples
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ clean:
make clean -C ./tests
make clean -C ./examples_obsolete
make clean -C ./tests_obsolete
rm -rf *.egg-info build dist *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v uut.vcd
rm -rf *.egg-info build dist *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v *.vcd

#.PHONY: release
#release:
Expand Down
2 changes: 1 addition & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ run:

.PHONY: clean
clean:
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v uut.vcd
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v *.vcd
find . -maxdepth 1 -type d | grep "./" | xargs -I {} make clean -C {}
2 changes: 1 addition & 1 deletion examples/axi_stream_ultra96v2_pynq/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ check:

.PHONY: clean
clean:
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v uut.vcd
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v *.vcd
58 changes: 37 additions & 21 deletions examples/axi_stream_ultra96v2_pynq/test_axi_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@
reg [32-1:0] _axi_a_read_local_addr_buf;
reg [32-1:0] _axi_a_read_local_stride_buf;
reg [33-1:0] _axi_a_read_local_size_buf;
reg _axi_a_read_data_idle;
reg _axi_a_read_data_busy;
wire _axi_a_read_data_idle;
wire _axi_a_read_idle;
assign _axi_a_read_idle = _axi_a_read_req_fifo_empty && _axi_a_read_data_idle;
assign _axi_a_read_data_idle = _axi_a_read_req_fifo_empty && !_axi_a_read_data_busy;
assign _axi_a_read_idle = _axi_a_read_data_idle;
wire _axi_b_write_req_fifo_enq;
wire [105-1:0] _axi_b_write_req_fifo_wdata;
wire _axi_b_write_req_fifo_full;
Expand Down Expand Up @@ -140,9 +142,11 @@
reg [32-1:0] _axi_b_write_local_addr_buf;
reg [32-1:0] _axi_b_write_local_stride_buf;
reg [33-1:0] _axi_b_write_size_buf;
reg _axi_b_write_data_idle;
reg _axi_b_write_data_busy;
wire _axi_b_write_data_idle;
wire _axi_b_write_idle;
assign _axi_b_write_idle = _axi_b_write_req_fifo_empty && _axi_b_write_data_idle;
assign _axi_b_write_data_idle = _axi_b_write_req_fifo_empty && !_axi_b_write_data_busy;
assign _axi_b_write_idle = _axi_b_write_data_idle;
assign saxi_bresp = 0;
assign saxi_rresp = 0;
reg signed [32-1:0] _saxi_register_0;
Expand Down Expand Up @@ -186,7 +190,7 @@
(axis_maskaddr_13 == 2)? _saxi_resetval_2 :
(axis_maskaddr_13 == 3)? _saxi_resetval_3 : 'hx;
reg _saxi_cond_0_1;
assign saxi_wready = _saxi_register_fsm == 2;
assign saxi_wready = _saxi_register_fsm == 3;
reg [32-1:0] th_comp;
localparam th_comp_init = 0;
reg signed [32-1:0] _th_comp_size_0;
Expand All @@ -202,13 +206,13 @@
always @(posedge CLK) begin
if(RST) begin
_axi_a_read_data_idle <= 1;
_axi_a_read_data_busy <= 0;
end else begin
if((th_comp == 7) && _axi_a_read_data_idle) begin
_axi_a_read_data_idle <= 0;
if((th_comp == 7) && _axi_a_read_idle) begin
_axi_a_read_data_busy <= 1;
end
if((th_comp == 8) && axi_a_tvalid) begin
_axi_a_read_data_idle <= 1;
_axi_a_read_data_busy <= 0;
end
end
end
Expand All @@ -231,7 +235,7 @@
always @(posedge CLK) begin
if(RST) begin
_axi_b_write_data_idle <= 1;
_axi_b_write_data_busy <= 0;
axi_b_tdata <= 0;
axi_b_tvalid <= 0;
axi_b_tlast <= 0;
Expand All @@ -241,8 +245,8 @@
axi_b_tvalid <= 0;
axi_b_tlast <= 0;
end
if((th_comp == 12) && _axi_b_write_data_idle) begin
_axi_b_write_data_idle <= 0;
if((th_comp == 12) && _axi_b_write_idle) begin
_axi_b_write_data_busy <= 1;
end
if((th_comp == 13) && (axi_b_tready || !axi_b_tvalid)) begin
axi_b_tdata <= _th_comp_b_4;
Expand All @@ -255,7 +259,7 @@
axi_b_tlast <= axi_b_tlast;
end
if((th_comp == 13) && (axi_b_tready || !axi_b_tvalid)) begin
_axi_b_write_data_idle <= 1;
_axi_b_write_data_busy <= 0;
end
end
end
Expand Down Expand Up @@ -340,16 +344,16 @@
_saxi_register_3 <= axislite_resetval_16;
_saxi_flag_3 <= 0;
end
if((_saxi_register_fsm == 2) && saxi_wvalid && (axis_maskaddr_13 == 0)) begin
if((_saxi_register_fsm == 3) && saxi_wvalid && (axis_maskaddr_13 == 0)) begin
_saxi_register_0 <= saxi_wdata;
end
if((_saxi_register_fsm == 2) && saxi_wvalid && (axis_maskaddr_13 == 1)) begin
if((_saxi_register_fsm == 3) && saxi_wvalid && (axis_maskaddr_13 == 1)) begin
_saxi_register_1 <= saxi_wdata;
end
if((_saxi_register_fsm == 2) && saxi_wvalid && (axis_maskaddr_13 == 2)) begin
if((_saxi_register_fsm == 3) && saxi_wvalid && (axis_maskaddr_13 == 2)) begin
_saxi_register_2 <= saxi_wdata;
end
if((_saxi_register_fsm == 2) && saxi_wvalid && (axis_maskaddr_13 == 3)) begin
if((_saxi_register_fsm == 3) && saxi_wvalid && (axis_maskaddr_13 == 3)) begin
_saxi_register_3 <= saxi_wdata;
end
if((_saxi_register_0 == 1) && (th_comp == 2) && 1) begin
Expand Down Expand Up @@ -401,6 +405,8 @@
localparam _saxi_register_fsm_1 = 1;
localparam _saxi_register_fsm_2 = 2;
localparam _saxi_register_fsm_3 = 3;
localparam _saxi_register_fsm_4 = 4;
always @(posedge CLK) begin
if(RST) begin
Expand All @@ -416,16 +422,26 @@
_saxi_register_fsm <= _saxi_register_fsm_1;
end
if(writevalid_9) begin
_saxi_register_fsm <= _saxi_register_fsm_2;
_saxi_register_fsm <= _saxi_register_fsm_3;
end
end
_saxi_register_fsm_1: begin
if(saxi_rready || !saxi_rvalid) begin
_saxi_register_fsm <= _saxi_register_fsm_init;
_saxi_register_fsm <= _saxi_register_fsm_2;
end
end
_saxi_register_fsm_2: begin
if(saxi_rready && saxi_rvalid) begin
_saxi_register_fsm <= _saxi_register_fsm_init;
end
end
_saxi_register_fsm_3: begin
if(saxi_wvalid) begin
_saxi_register_fsm <= _saxi_register_fsm_4;
end
end
_saxi_register_fsm_4: begin
if(saxi_bready && saxi_bvalid) begin
_saxi_register_fsm <= _saxi_register_fsm_init;
end
end
Expand Down Expand Up @@ -499,7 +515,7 @@
end
end
th_comp_7: begin
if(_axi_a_read_data_idle) begin
if(_axi_a_read_idle) begin
th_comp <= th_comp_8;
end
end
Expand Down Expand Up @@ -528,7 +544,7 @@
th_comp <= th_comp_12;
end
th_comp_12: begin
if(_axi_b_write_data_idle) begin
if(_axi_b_write_idle) begin
th_comp <= th_comp_13;
end
end
Expand Down
2 changes: 1 addition & 1 deletion examples/chatter_clear/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ check:

.PHONY: clean
clean:
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v uut.vcd
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v *.vcd
Loading

0 comments on commit 5cc0461

Please sign in to comment.