Skip to content

Commit

Permalink
Update blue-crc submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
wengwz committed Aug 2, 2023
1 parent 82d3d3c commit 58d7f8d
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 153 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "lib/blue-wrapper"]
path = lib/blue-wrapper
url = https://github.com/wengwz/blue-wrapper.git
[submodule "lib/blue-crc"]
path = lib/blue-crc
url = https://github.com/datenlord/blue-crc.git
1 change: 1 addition & 0 deletions lib/blue-crc
Submodule blue-crc added at 639bcf
11 changes: 11 additions & 0 deletions scripts/crc_ieee_32_256.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"crc_width": 32,
"axi_keep_width": 32,
"polynomial": "0x04C11DB7",
"init_value": "0xFFFFFFFF",
"final_xor": "0xFFFFFFFF",
"reverse_input": true,
"reverse_output": true,
"mem_file_prefix": "crc_tab",
"crc_mode": "CRC_MODE_SEND"
}
16 changes: 8 additions & 8 deletions src/includes/Utils.bsv
Original file line number Diff line number Diff line change
Expand Up @@ -686,14 +686,14 @@ module mkSizedBramFifoToPipeOut#(

FIFOF#(dType) fifo <- mkSizedBRAMFIFOF(depth);
rule doEnq;
if (fifo.notFull) begin
fifo.enq(pipe.first);
pipe.deq;
$display("BramFifo enq ", fshow(pipe.first));
end
else begin
$display("BramFifo is Full");
end
//if (fifo.notFull) begin
fifo.enq(pipe.first);
pipe.deq;
// $display("BramFifo enq ", fshow(pipe.first));
// end
// else begin
// $display("BramFifo is Full");
// end
endrule
return convertFifoToPipeOut(fifo);
endmodule
Expand Down
5 changes: 3 additions & 2 deletions syn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ LOCALSRCDIR = $(ROOT_DIR)/src:$(ROOT_DIR)/src/includes
LIB_CRC_DIR = $(ROOT_DIR)/lib/blue-crc/src
LIB_WRAPPER_DIR = $(ROOT_DIR)/lib/blue-wrapper/src
LIBSRCDIR = $(LIB_CRC_DIR):$(LIB_WRAPPER_DIR)
CRC_TAB_SCRIPT = $(ROOT_DIR)/lib/blue-crc/scripts/gen_crc_tab.py

PWD = $(shell pwd)
VLOGDIR = generated
OUTPUTDIR = output_ooc
ONLYSYNTH = 0
ONLYSYNTH = 1
CLK = main_clock

TARGET = RdmaUdpArpEthRxTx
Expand All @@ -23,7 +24,7 @@ export SYNTHONLY = $(ONLYSYNTH)
export CLOCKS = $(CLK)

table:
python3 $(LIB_CRC_DIR)/gen_crc_tab.py 32 256
python3 $(CRC_TAB_SCRIPT) $(SCRIPTS_DIR)/crc_ieee_32_256.json ./

compile:
mkdir -p $(BUILDDIR)
Expand Down
6 changes: 0 additions & 6 deletions test/bluesim/TestUdpReceiver.bsv

This file was deleted.

136 changes: 0 additions & 136 deletions test/bluesim/TestUdpTransmitter.bsv

This file was deleted.

3 changes: 2 additions & 1 deletion test/cocotb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ LOCALSRCDIR = $(ROOT_DIR)/src:$(ROOT_DIR)/src/includes
LIB_CRC_DIR = $(ROOT_DIR)/lib/blue-crc/src
LIB_WRAPPER_DIR = $(ROOT_DIR)/lib/blue-wrapper/src
LIBSRCDIR = $(LIB_CRC_DIR):$(LIB_WRAPPER_DIR)
CRC_TAB_SCRIPT = $(ROOT_DIR)/lib/blue-crc/scripts/gen_crc_tab.py

TARGET = RdmaUdpIpEthRx
FILE_PATH = $(ROOT_DIR)/src
Expand All @@ -15,7 +16,7 @@ VLOGDIR = verilog
VLOG_FILE = $(VLOGDIR)/$(TOP).v

table:
python3 $(LIB_CRC_DIR)/gen_crc_tab.py 32 256
python3 $(CRC_TAB_SCRIPT) $(SCRIPTS_DIR)/crc_ieee_32_256.json ./

verilog:
mkdir -p $(BUILDDIR)
Expand Down

0 comments on commit 58d7f8d

Please sign in to comment.