Browse Source

Add comments with some hints to yosys & p_r options and their effects

main
T. Meissner 2 years ago
parent
commit
bb98b0e5f5
2 changed files with 10 additions and 5 deletions
  1. +2
    -2
      uart_aes/rtl/uart_aes.vhd
  2. +8
    -3
      uart_aes/syn/Makefile

+ 2
- 2
uart_aes/rtl/uart_aes.vhd View File

@ -1,8 +1,8 @@
-- This design implements a register file which can
-- This design implements a AES-CTR unit which which can
-- be accessed by an UART with 9600 baud -- be accessed by an UART with 9600 baud
-- --
-- See into uart_ctrl.vhd for documentation of the protocol -- See into uart_ctrl.vhd for documentation of the protocol
-- used to read / write the register file.
-- used to read / write the AES-CTR registers.
library ieee ; library ieee ;


+ 8
- 3
uart_aes/syn/Makefile View File

@ -4,8 +4,6 @@ AES_DIR := ../../cryptocores/aes/rtl/vhdl
CRYPTO_SRC := \ CRYPTO_SRC := \
$(AES_DIR)/aes_pkg.vhd \ $(AES_DIR)/aes_pkg.vhd \
$(AES_DIR)/aes_enc.vhd \ $(AES_DIR)/aes_enc.vhd \
$(AES_DIR)/aes_dec.vhd \
$(AES_DIR)/aes.vhd \
$(AES_DIR)/../../../ctraes/rtl/vhdl/ctraes.vhd $(AES_DIR)/../../../ctraes/rtl/vhdl/ctraes.vhd
WORK_FILES := \ WORK_FILES := \
@ -21,8 +19,15 @@ GHDL_FLAGS := --std=08 --workdir=build -Pbuild
ICARUSFLAGS := -Wall -Winfloop -g2012 -gspecify -Ttyp ICARUSFLAGS := -Wall -Winfloop -g2012 -gspecify -Ttyp
YOSYSPIPE := -nomx8 YOSYSPIPE := -nomx8
PNRFLAGS := -om 3 -cCP on
# yosys -nomx8 option has to be used as GM FPGA hasn't any (working?) MUX8 cells (in contrast to documentation)
# yosys -retime option causes design AES unit misbehavior (wrong results)
# yosys -dff option can be used without risk (but leads to 2.5 mhz less fmax)
PNRTOOL := $(shell which p_r) PNRTOOL := $(shell which p_r)
PNRFLAGS := -om 3 -cCP off
# p_r +cCP option causes design AES unit misbehavior (wrong results != retime results)
# p_r +sp option causes design AES unit misbehavior (wrong results != retime results != cCP results)
# p_r +cCP with +gCP also breaks UART
.PHONY: all syn imp prog syn_sim imp_sim .PHONY: all syn imp prog syn_sim imp_sim


Loading…
Cancel
Save