Skip to content
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

Create a project without tables #72

Open
MarioPatetta opened this issue May 20, 2022 · 0 comments
Open

Create a project without tables #72

MarioPatetta opened this issue May 20, 2022 · 0 comments

Comments

@MarioPatetta
Copy link

Hello.

I am trying to create a project without lookup tables. I've read in the Workflow Overview that all P4 designs must have at least one table or extern function with a control interface.

My design has some register externs that have control interfaces and I assumed this would have been enough.

At first, I've tried just to use an empty command.txt file and no table instantiation in the p4 code. What happens is that, when I try to compile it, I get:

cp src/.tbl nf_sume_sdnet_ip/SimpleSumeSwitch/
cp: cannot stat 'src/
.tbl': No such file or directory
make: *** [Makefile:45: all] Error 1

I then tried to comment out line 45 in ${P4_PROG_DIR}/Makefile, that is cp src/*.tbl ${SDNET_OUT_DIR}/${P4_SWITCH}/.

At this point, the compiling goes through, but then SDNet simulation hangs at:

Time: 1 ps Iteration: 0 Process: SimpleSumeSwitch_tb/SimpleSumeSwitch_i/S_SYNCER_for__OUT_/e1pi3xdq7cashqmneqmpmmkpomn50_2563/gnuram_async_fifo.xpm_fifo_base_inst/gen_sdpram.xpm_memory_base_inst/Initial270_11044 File: /home/P4-NetFPGA-live/contrib-projects/sume-sdnet-switch/projects/my_project/nf_sume_sdnet_ip/SimpleSumeSwitch/S_SYNCERs.HDL/xpm_memory.sv

I've then tried commenting out other lines in the Makefile, but nothing changes.

Is there a way to avoid instantiating tables or must I use a dummy one?

Thank you for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant