mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Lint cleanup
This commit is contained in:
parent
3fa37b0233
commit
45f505250c
@ -26,7 +26,10 @@ fi
|
|||||||
|
|
||||||
for config in ${configs[@]}; do
|
for config in ${configs[@]}; do
|
||||||
# echo "$config linting..."
|
# echo "$config linting..."
|
||||||
if !($verilator --lint-only --quiet --top-module wallywrapper "-I$basepath/config/shared" "-I$basepath/config/$config" "-I$basepath/config/deriv/$config" $basepath/src/cvw.sv $basepath/testbench/wallywrapper.sv $basepath/src/*/*.sv $basepath/src/*/*/*.sv --relative-includes ); then
|
if !($verilator --lint-only --quiet --top-module wallywrapper \
|
||||||
|
"-I$basepath/config/shared" "-I$basepath/config/$config" "-I$basepath/config/deriv/$config" \
|
||||||
|
$basepath/src/cvw.sv $basepath/testbench/wallywrapper.sv $basepath/src/*/*.sv $basepath/src/*/*/*.sv \
|
||||||
|
-Wall -Wno-UNUSEDSIGNAL -Wno-UNUSEDPARAM -Wno-VARHIDDEN -Wno-GENUNNAMED -Wno-PINCONNECTEMPTY); then
|
||||||
if [ "$1" == "-nightly" ]; then
|
if [ "$1" == "-nightly" ]; then
|
||||||
echo -e "${RED}$config failed lint${NC}"
|
echo -e "${RED}$config failed lint${NC}"
|
||||||
fails=$((fails+1))
|
fails=$((fails+1))
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
module packer #(parameter WIDTH=32) (
|
module packer #(parameter WIDTH=32) (
|
||||||
input logic [WIDTH-1:0] A, B,
|
input logic [WIDTH/2-1:0] A, B,
|
||||||
input logic [2:0] PackSelect,
|
input logic [2:0] PackSelect,
|
||||||
output logic [WIDTH-1:0] PackResult
|
output logic [WIDTH-1:0] PackResult
|
||||||
);
|
);
|
||||||
|
@ -42,7 +42,7 @@ module zbkb #(parameter WIDTH=32) (
|
|||||||
for (j=0; j<8; j=j+1)
|
for (j=0; j<8; j=j+1)
|
||||||
assign Brev8Result[i*8+j] = A[i*8+7-j];
|
assign Brev8Result[i*8+j] = A[i*8+7-j];
|
||||||
|
|
||||||
packer #(WIDTH) pack(.A, .B, .PackSelect({ZBKBSelect[2], Funct3[1:0]}), .PackResult);
|
packer #(WIDTH) pack(.A(A[WIDTH/2-1:0]), .B(B[WIDTH/2-1:0]), .PackSelect({ZBKBSelect[2], Funct3[1:0]}), .PackResult);
|
||||||
zipper #(WIDTH) zipper(.A, .ZipSelect(Funct3[2]), .ZipResult);
|
zipper #(WIDTH) zipper(.A, .ZipSelect(Funct3[2]), .ZipResult);
|
||||||
|
|
||||||
// ZBKB Result Select Mux
|
// ZBKB Result Select Mux
|
||||||
|
Loading…
Reference in New Issue
Block a user