- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hello,
is there a way to propagate hardwareparameters of Avalon-Components to system.h SOPC-Builder provides possibility to set values of generics, used in component's top level VHDL-files during instantiation of compoents. How can the value, chosen within SOPC-Builder be propagated to e.g. system.h? For my current projects i always have to make sure, that chosen generics match '#defines' for software projects. THX Josef링크가 복사됨
3 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Did you ever get this to work? I would like to be able to do this.
Regards, Rich- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I realised I was trying to do something a bit different to the just getting a generic because my generic was set-able by the user.
The answer to my problem was to edit the hw.tcl file with the following set_module_assignment embeddedsw.CMacro.TX_ARBITERLOCK [get_parameter_property allow_tx_arbiterlock HDL_PARAMETER] set_module_assignment embeddedsw.CMacro.RX_ARBITERLOCK [get_parameter_property allow_rx_arbiterlock HDL_PARAMETER] Hope this helps someone one day, Rich- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
ok, all that did was say whether the items were HDL parameters. I needed to add a validation callback in the tcl file e.g.
set_module_property VALIDATION_CALLBACK validate then at the bottom define the function proc validate {} { set_module_assignment embeddedsw.CMacro.TX_ARBITERLOCK [get_parameter_value allow_tx_arbiterlock] set_module_assignment embeddedsw.CMacro.RX_ARBITERLOCK [get_parameter_value allow_rx_arbiterlock] } which does seem to work