-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
treewide: Add idma to ethernet #3
Draft
alex96295
wants to merge
12
commits into
main
Choose a base branch
from
aottaviano/idma
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
203445e
treewide: Add idma to ethernet
alex96295 2af170c
treewide: Mixed fixes
alex96295 92174e3
eth.mk: Update nonfree pointer
alex96295 56737fb
Update README.md
alex96295 a319bb6
eth.mk: Update nonfree pointer
alex96295 f345e76
Bender.yml: Use same IP commit lenght
alex96295 07bde79
eth.mk: Update nonfree pointer
alex96295 0d15e42
target: Update keyword for succeeded test
alex96295 e91ed1f
restore external clk gen
chaoqun-liang 94046fc
restore eth_top, tb update
chaoqun-liang b7cef2f
multiple fixes
chaoqun-liang 7b6bf10
clean up
chaoqun-liang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.bender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,9 @@ packages: | |
- common_cells | ||
- common_verification | ||
- tech_cells_generic | ||
axi_mem_if: | ||
revision: 3567273b4f67bd57a81a2a503394a49641bae53a | ||
version: 0.2.1 | ||
source: | ||
Git: [email protected]:pulp-platform/axi_mem_if.git | ||
dependencies: | ||
- axi | ||
axi_stream: | ||
revision: 472751f550e3918215603e21734fe0ece3c66f79 | ||
version: null | ||
revision: 54891ff40455ca94a37641b9da4604647878cc07 | ||
version: 0.1.1 | ||
source: | ||
Git: [email protected]:pulp-platform/axi_stream.git | ||
dependencies: | ||
|
@@ -43,15 +36,33 @@ packages: | |
source: | ||
Git: https://github.com/pulp-platform/common_verification.git | ||
dependencies: [] | ||
idma: | ||
revision: a80fcace92b1562e7cd76c8615298b5623ba74d2 | ||
version: 0.6.0-beta | ||
source: | ||
Git: [email protected]:pulp-platform/iDMA.git | ||
dependencies: | ||
- axi | ||
- common_cells | ||
- common_verification | ||
- idma_gen | ||
- register_interface | ||
idma_gen: | ||
revision: null | ||
version: null | ||
source: | ||
Path: .bender/git/checkouts/idma-c23dbd3f440503c0/target/rtl | ||
dependencies: [] | ||
register_interface: | ||
revision: 146501d80052b61475cdc333d3aab4cd769fd5dc | ||
version: 0.3.9 | ||
revision: d7693be4aef1fc7e7eb2b00b41c42e87d959866c | ||
version: 0.4.2 | ||
source: | ||
Git: https://github.com/pulp-platform/register_interface.git | ||
dependencies: | ||
- apb | ||
- axi | ||
- common_cells | ||
- common_verification | ||
tech_cells_generic: | ||
revision: 7968dd6e6180df2c644636bc6d2908a49f2190cf | ||
version: 0.2.13 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Copyright 2023 ETH Zurich and University of Bologna. | ||
# Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
# SPDX-License-Identifier: SHL-0.51 | ||
|
||
package: | ||
name: pulp-ethernet | ||
|
||
|
@@ -11,20 +15,20 @@ package: | |
- "Davide Rossi <[email protected]>" | ||
|
||
dependencies: | ||
axi_mem_if : { git: [email protected]:pulp-platform/axi_mem_if.git, version: 0.2.1 } | ||
axi : { git: "[email protected]:pulp-platform/axi.git", version: 0.39.1 } | ||
common_verification : { git: "https://github.com/pulp-platform/common_verification.git", version: 0.2.3 } | ||
register_interface : { git: "https://github.com/pulp-platform/register_interface.git", version: 0.3.8 } | ||
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.32.0 } | ||
axi_stream: { git: "[email protected]:pulp-platform/axi_stream.git", rev: "472751f550e3918215603e21734fe0ece3c66f79" } | ||
axi : { git: "[email protected]:pulp-platform/axi.git", version: 0.39.1 } | ||
axi_stream: { git: "[email protected]:pulp-platform/axi_stream.git", rev: "54891ff" } # branch: main | ||
common_verification : { git: "https://github.com/pulp-platform/common_verification.git", version: 0.2.3 } | ||
register_interface : { git: "https://github.com/pulp-platform/register_interface.git", version: 0.4.2 } | ||
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.32.0 } | ||
idma: { git: "[email protected]:pulp-platform/iDMA.git", rev: "v0.6.0-beta" } | ||
|
||
sources: | ||
# Source files grouped in levels. Files in level 0 have no dependencies on files in this | ||
# package. Files in level 1 only depend on files in level 0, files in level 2 on files in | ||
# levels 1 and 0, etc. Files within a level are ordered alphabetically. | ||
# Level 0 | ||
- gen/eth_framing_reg_pkg.sv | ||
- gen/eth_framing_reg_top.sv | ||
- gen/eth_idma_reg_pkg.sv | ||
- gen/eth_idma_reg_top.sv | ||
- rtl/axis_gmii_rx.sv | ||
- rtl/axis_gmii_tx.sv | ||
# Level 1 | ||
|
@@ -40,9 +44,12 @@ sources: | |
- rtl/ssio_ddr_in.sv | ||
# Level 2 | ||
- rtl/framing_top.sv | ||
- rtl/eth_top_pkg.sv | ||
- rtl/eth_top.sv | ||
- target/synth/eth_top_synth.sv | ||
- rtl/eth_idma_wrap.sv | ||
|
||
- target: any(synthesis, asic) | ||
files: | ||
- target/synth/eth_idma_wrap_synth.sv | ||
|
||
- target: test | ||
files: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,13 @@ | |
BENDER ?= bender | ||
QUESTA ?= questa-2022.3 | ||
TBENCH ?= eth_tb | ||
DUT ?= eth_rgmii_synth | ||
DUT ?= eth_idma_wrap | ||
|
||
# Design and simulation variables | ||
ETH_ROOT ?= $(shell $(BENDER) path fe-ethernet) | ||
ETH_VSIM_DIR := $(ETH_ROOT)/target/sim/vsim | ||
|
||
IDMA_ROOT ?= $(shell $(BENDER) path idma) | ||
|
||
QUESTA_FLAGS := -permissive -suppress 3009 -suppress 8386 -error 7 +UVM_NO_RELNOTES | ||
#QUESTA_FLAGS := | ||
|
@@ -34,44 +37,69 @@ else | |
RUN_AND_EXIT := run -all; exit | ||
endif | ||
|
||
######## | ||
# Deps # | ||
######## | ||
|
||
eth-checkout: | ||
$(BENDER) checkout | ||
touch Bender.lock | ||
|
||
include $(IDMA_ROOT)/idma.mk | ||
|
||
###################### | ||
# Nonfree components # | ||
###################### | ||
|
||
ETH_NONFREE_REMOTE ?= [email protected]:pulp-restricted/pulp-ethernet-nonfree.git | ||
ETH_NONFREE_COMMIT ?= cd8dcd3 | ||
ETH_NONFREE_COMMIT ?= 9a45a7c | ||
|
||
eth-nonfree-init: | ||
git clone $(ETH_NONFREE_REMOTE) $(ETH_ROOT)/nonfree | ||
cd $(ETH_ROOT)/nonfree && git checkout $(ETH_NONFREE_COMMIT) | ||
|
||
-include $(ETH_ROOT)/nonfree/nonfree.mk | ||
|
||
############## | ||
# HW GEN # | ||
############## | ||
|
||
eth-idma-gen: eth-checkout | ||
make -C $(IDMA_ROOT) idma_hw_all | ||
|
||
############## | ||
# Simulation # | ||
############## | ||
|
||
# Questasim | ||
$(ETH_ROOT)/target/sim/vsim/compile.eth.tcl: Bender.yml | ||
$(BENDER) script vsim -t test \ | ||
$(BENDER) script vsim -t rtl -t test -t sim \ | ||
--vlog-arg="-svinputport=compat" \ | ||
--vlog-arg="-override_timescale 1ns/1ps" \ | ||
--vlog-arg="-suppress 2583" > $@ | ||
echo 'vopt $(VOPT_FLAGS) $(TBENCH) -o $(TBENCH)_opt' >> $@ | ||
|
||
eth-sim-init: $(ETH_ROOT)/target/sim/vsim/compile.eth.tcl | ||
|
||
eth-hw-build: eth-sim-init | ||
$(QUESTA) vsim -c -do "quit -code [source $(ETH_ROOT)/target/sim/vsim/compile.eth.tcl]" | ||
eth-vsim-sim-build: eth-sim-init | ||
cd $(ETH_VSIM_DIR) && $(QUESTA) vsim -c -do "quit -code [source $(ETH_ROOT)/target/sim/vsim/compile.eth.tcl]" | ||
|
||
eth-hw-sim: | ||
$(QUESTA) vsim $(VSIM_FLAGS) -do \ | ||
eth-vsim-sim-run: | ||
cd $(ETH_VSIM_DIR) && $(QUESTA) vsim $(VSIM_FLAGS) -do \ | ||
"set TESTBENCH $(TBENCH); \ | ||
set VSIM_FLAGS \"$(VSIM_FLAGS)\"; \ | ||
source $(ETH_ROOT)/target/sim/vsim/start.eth.tcl ; \ | ||
$(RUN_AND_EXIT)" | ||
|
||
eth-vsim-sim-clean: | ||
cd $(ETH_VSIM_DIR) && rm -rf work transcript | ||
|
||
# Global targets | ||
|
||
eth-sim-init: $(ETH_ROOT)/target/sim/vsim/compile.eth.tcl | ||
eth-sim-build: eth-vsim-sim-build | ||
eth-sim-clean: eth-vsim-sim-clean | ||
|
||
################################# | ||
# Phonies (KEEP AT END OF FILE) # | ||
################################# | ||
|
||
.PHONY: eth-all eth-nonfree-init eth-sim-init eth-hw-build eth-hw-sim | ||
.PHONY: eth-all eth-nonfree-init eth-checkout eth-idma-gen eth-sim-init eth-sim-build eth-sim-clean eth-vsim-sim-build eth-vsim-sim-clean eth-vsim-sim-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add also the commands to generate the register list as markdown file? This command should make it: https://github.com/pulp-platform/carfield/blob/main/carfield.mk#L236
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! i will include it in my next commit.