mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-01-11 23:43:15 +00:00
litesdcard: add lattice, regenerate
Modifies litescard generate script to take a clock speed.
Regenerated verilog with latest litesdcard
e52c731 ("Bump year.")
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
This commit is contained in:
parent
d794cc70b1
commit
42959184dd
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
VENDORS="xilinx"
|
||||
# vendor:sysclk
|
||||
VENDORS="xilinx:100 lattice:48"
|
||||
|
||||
ME=$(realpath $0)
|
||||
echo ME=$ME
|
||||
@ -13,8 +14,10 @@ mkdir -p $BUILD_PATH
|
||||
GEN_PATH=$PARENT_PATH/generated
|
||||
mkdir -p $GEN_PATH
|
||||
|
||||
for i in $VENDORS
|
||||
for i_clk in $VENDORS
|
||||
do
|
||||
i=$(echo $i_clk | cut -d : -f 1)
|
||||
clk=$(echo $i_clk | cut -d : -f 2)
|
||||
TARGET_BUILD_PATH=$BUILD_PATH/$i
|
||||
TARGET_GEN_PATH=$GEN_PATH/$i
|
||||
rm -rf $TARGET_BUILD_PATH
|
||||
@ -22,8 +25,8 @@ do
|
||||
mkdir -p $TARGET_BUILD_PATH
|
||||
mkdir -p $TARGET_GEN_PATH
|
||||
|
||||
echo "Generating $i in $TARGET_BUILD_PATH"
|
||||
(cd $TARGET_BUILD_PATH && litesdcard_gen --vendor $i)
|
||||
echo "Generating $i in $TARGET_BUILD_PATH"
|
||||
(cd $TARGET_BUILD_PATH && litesdcard_gen --vendor $i --clk-freq $clk)
|
||||
|
||||
cp $TARGET_BUILD_PATH/build/gateware/litesdcard_core.v $TARGET_GEN_PATH/
|
||||
done
|
||||
|
||||
4288
litesdcard/generated/lattice/litesdcard_core.v
Normal file
4288
litesdcard/generated/lattice/litesdcard_core.v
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user