Jump to content

Uzmeed

Members
  • Content count

    16
  • Joined

  • Last visited

  1. Errors in code

    will u please guide that why the value of PS_reg is not assigned to Lout in convert.cpp
  2. Errors in code

    Hi Attached is the code for parallel to serial and serial to parallel conversion i have two problems in converter.cpp 1- count is not incrementing the value 2- Lout is not getting value of PS_reg in SPPS48 i am getting the following error ./../../SPPS48.h: In constructor 'SPPS48::SPPS48(sc_core::sc_module_name)': ../../../SPPS48.h:51:9: error: 'struct SPPS48' has no member named 'M1' ../../../SPPS48.h:51:16: error: expected type-specifier before 'SPPS' ../../../SPPS48.h:51:16: error: expected ';' before 'SPPS' ../../../SPPS48.h:52:3: error: 'M1' was not declared in this scope ../../../SPPS48.h:60:3: error: 'M2' was not declared in this scope ../../../SPPS48.h:60:10: error: expected type-specifier before 'SPPS' ../../../SPPS48.h:60:10: error: expected ';' before 'SPPS' ../../../SPPS48.h:69:3: error: 'M3' was not declared in this scope ../../../SPPS48.h:69:10: error: expected type-specifier before 'SPPS' ../../../SPPS48.h:69:10: error: expected ';' before 'SPPS' convert.cpp main.cpp SPPS.h SPPS48.h
  3. cannot understand error

    Thanks Ralph Can you please guide me that how can I convert the sc_fifo signal to simple bus( i know that is not the topic)
  4. I have to input data from sc_fifo interface and send it on the master of simple bus that will in return give it to simple bus slave Any idea how the simple_bus.h can be exploited I will be highly obliged for the valuable advice regards
  5. Thanx David I am doing my MS and studying the course of reconfigurable computing . I admitt that i have to study C before system C but compulsion of doing projects in system C forces me to seek advice . However I am trying my level best Any way thanks ur advice solved my problem
  6. main.cpp is just for running the simulation otherwise the tool does not simulate I am bound to develop the code in vivado HLS :(
  7. Thanks Ameya I was adding these guards but in cmd.h only adding to both cmd.h and arith.h worked moreover file.h = cmd.h i just change the name to see if trhere any conflict with name or not One more thing please I am also getrting the following error you can also see that in the log i attached previously C:/Xilinx/Vivado_HLS/2015.4/win64/tools/systemc/include/sysc/communication/sc_fifo.h: In member function 'void sc_core::sc_fifo<T>::print(std::ostream&) const [with T = cmd, std::ostream = std::basic_ostream<char>]': ../../../main.cpp:9:2: instantiated from here C:/Xilinx/Vivado_HLS/2015.4/win64/tools/systemc/include/sysc/communication/sc_fifo.h:314:13: error: no match for 'operator<<' in 'os << *(((cmd*)((const sc_core::sc_fifo<cmd>*)this)->sc_core::sc_fifo<cmd>::m_buf) + ((unsigned int)(((unsigned int)i) * 16u)))' C:/Xilinx/Vivado_HLS/2015.4/win64/tools/systemc/include/sysc/communication/sc_fifo.h:314:13: note: candidates are: c:\xilinx\vivado_hls\2015.4\msys\bin\../lib/gcc/mingw32/4.6.2/include/c++/ostream:110:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]............................................. Can u please also help in this regard Regards
  8. I am going to simulate the following code but getting the error I am newbie to systemc (in fact C) your valuable input will help me to understand the error arith.h arith_proc.cpp cmd.h result_proc.cpp write_result.cpp Simple_Bus_csim.log
  9. Hi I have to design an adapter that carry the data from sc_fifo interface to simple_bus. Can anyone please help from where can I start. I am unable to find anything perticular regards Uzmeed
  10. cannot understand error

    After making some changes now i am getting the following error the project is attached your immediate response id highly regarded @E [HLS-70] In file included from C:/Users/Home/UART_rx/UART_rx/solution1/.autopilot/db/Output_n_nextstate.pragma.1.cpp:1: In file included from UART_rx/Output_n_nextstate.cpp:1: In file included from UART_rx/Output_n_nextstate.cpp:1: In file included from C:/Xilinx/Vivado_HLS/2015.4/common/technology/autopilot/ap_sysc\systemc.h:1: In file included from C:/Xilinx/Vivado_HLS/2015.4/common/technology/autopilot/ap_sysc/ap_systemc.h:51: C:/Xilinx/Vivado_HLS/2015.4/common/technology/autopilot/ap_sysc/ap_sc_core.h:206:15: error: no viable conversion from 'const _ap_sc_::sc_core::sc_signal_inout_if<int>' to 'int' T v = v2; ^ ~~ C:/Xilinx/Vivado_HLS/2015.4/common/technology/autopilot/ap_sysc/ap_sc_core.h:200:13: note: in instantiation of function template specialization '_ap_sc_::sc_core::sc_signal_inout_if<int>::write<_ap_sc_::sc_core::sc_signal_inout_if<int> >' requested here write(v); ^ C:/Xilinx/Vivado_HLS/2015.4/common/technology/autopilot/ap_sysc/ap_sc_core.h:322:11: note: in instantiation of member function '_ap_sc_::sc_core::sc_signal_inout_if<int>::operator=' requested here class sc_signal : public sc_signal_inout_if<T> { ^ C:/Xilinx/Vivado_HLS/2015.4/common/technology/autopilot/ap_sysc/ap_sc_core.h:187:9: note: candidate function not viable: 'this' argument has type 'const _ap_sc_::sc_core::sc_signal_inout_if<int>', but method is not marked const operator const T () { return this->read(); } ^ 1 error generated. Compilation of the preprocessed source 'Output_n_nextstate.g' failed while executing "source C:/Users/Home/UART_rx/UART_rx/solution1/csynth.tcl" invoked from within "hls::main C:/Users/Home/UART_rx/UART_rx/solution1/csynth.tcl" ("uplevel" body line 1) invoked from within "uplevel 1 hls::main {*}$args" (procedure "hls_proc" line 5) invoked from within "hls_proc $argv" UART_tx.h State_Transition.cpp Register_Transfer.cpp Output_n_nextstate.cpp main.cpp
  11. help to understand

    It seems to me that I am unable to take a signal from process to another right??
  12. help to understand

    Hi I am very much new to system c My code is attached can you please help me that whats wrong am i doing that Serial_out is not connected to any signal I have assigned it a value in Register_Transfer.cpp Best Regards Uzmeed Output_n_nextstate.cpp Register_Transfer.cpp State_Transition.cpp UART_tx.h
  13. help to understand

    I have attached the schematic of my systems c code To me it seems that output Serial_out is not connected to any input rather connected constantly to ground Am I right ?? schematic.pdf
  14. cannot understand error

    Thanks Ralph It worked Best Regards Uzmeed
  15. cannot understand error

    Hi David All my code is attached main.cpp Output_n_nextstate.cpp Register_Transfer.cpp State_Transition.cpp UART_tx.h
×