Skip to content

Create a project without tables #72

Description

@MarioPatetta

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions