diff --git a/src/jlink.hpp b/src/jlink.hpp index 152f78a..70c627f 100644 --- a/src/jlink.hpp +++ b/src/jlink.hpp @@ -19,7 +19,7 @@ class Jlink: public JtagInterface { public: /*! - * \brief contructor: open device + * \brief constructor: open device * \param[in] clkHz: output clock frequency * \param[in] verbose: verbose level -1 quiet, 0 normal, * 1 verbose, 2 debug @@ -28,7 +28,7 @@ class Jlink: public JtagInterface { ~Jlink(); - // jtagInterface requirement + // jtag Interface requirement /*! * \brief configure probe clk frequency * \param[in] clkHZ: frequency in Hertz @@ -58,7 +58,7 @@ class Jlink: public JtagInterface { /*! * \brief access ll_write outer this class / directly receives - * fully filled tms, tdi buffers, and optionnally tdo + * fully filled tms, tdi buffers, and optionally tdo * \param[in] tms: tms buffer * \param[in] tdi: tdi buffer * \param[out] tdo: tdo buffer @@ -295,7 +295,7 @@ class Jlink: public JtagInterface { // buffers for xfer, tdi and tdo // each jlink's buffer have 2K Byte // enough to send full jtag write - // buffers must be independant + // buffers must be independent uint8_t _xfer_buf[(2048*2) + 4]; /*!> internal buffer */ uint8_t _tms[2048]; /*!< TMS buffer */ uint8_t _tdi[2048]; /*!< TDI buffer */ diff --git a/src/jtag.cpp b/src/jtag.cpp index 755e2ef..9a28b8e 100644 --- a/src/jtag.cpp +++ b/src/jtag.cpp @@ -285,7 +285,7 @@ int Jtag::flushTMS(bool flush_buffer) void Jtag::go_test_logic_reset() { - /* idenpendly to current state 5 clk with TMS high is enough */ + /* independently to current state 5 clk with TMS high is enough */ for (int i = 0; i < 6; i++) setTMS(0x01); flushTMS(false); diff --git a/src/lattice.cpp b/src/lattice.cpp index 56f57dc..85ff306 100644 --- a/src/lattice.cpp +++ b/src/lattice.cpp @@ -248,7 +248,7 @@ void displayFeabits(uint16_t _featbits) printf("\tMy_ASSP : %s\n", (((_featbits>>4)&0x01)?"enable":"disable")); printf("\tPassword (Flash Protect Key) Protect All : %s\n", - (((_featbits>>3)&0x01)?"Enaabled" : "Disabled")); + (((_featbits>>3)&0x01)?"Enabled" : "Disabled")); printf("\tPassword (Flash Protect Key) Protect : %s\n", (((_featbits>>2)&0x01)?"Enabled" : "Disabled")); } @@ -983,10 +983,10 @@ void Lattice::displayReadReg(uint32_t dev) printf("SDM EOF\n"); break; case 8: - printf("Authentification ERR\n"); + printf("Authentication ERR\n"); break; case 9: - printf("Authentification Setup ERR\n"); + printf("Authentication Setup ERR\n"); break; case 10: printf("Bitstream Engine Timeout ERR\n"); @@ -1003,7 +1003,7 @@ void Lattice::displayReadReg(uint32_t dev) if ((dev >> 46) & 0x01) printf("\tINIT Bus ID Error\n"); if ((dev >> 47) & 0x01) printf("\tI3C Parity Error1\n"); err = (dev >> 48) & 0x03; - printf("\tAuthentification mode:\n"); + printf("\tAuthentication mode:\n"); printf("\t\t"); switch (err) { case 3: @@ -1017,8 +1017,8 @@ void Lattice::displayReadReg(uint32_t dev) printf("HMAC\n"); break; } - if ((dev >> 50) & 0x01) printf("\tAuthentification Done\n"); - if ((dev >> 51) & 0x01) printf("\tDry Run Authentification Done\n"); + if ((dev >> 50) & 0x01) printf("\tAuthentication Done\n"); + if ((dev >> 51) & 0x01) printf("\tDry Run Authentication Done\n"); #endif } diff --git a/src/mcsParser.cpp b/src/mcsParser.cpp index e762ef0..bc980c3 100644 --- a/src/mcsParser.cpp +++ b/src/mcsParser.cpp @@ -24,7 +24,7 @@ using namespace std; * 01 -> end of file * 02 -> extended addr * 03 -> start segment addr record - * 04 -> extented linear addr record + * 04 -> extended linear addr record * 05 -> start linear addr record */ diff --git a/src/pofParser.cpp b/src/pofParser.cpp index c794342..e7be4cf 100644 --- a/src/pofParser.cpp +++ b/src/pofParser.cpp @@ -109,7 +109,7 @@ uint32_t POFParser::parseSection(uint16_t flag, uint32_t pos, uint32_t size) /* 0x03: bitstream name ? */ /* 0x3b: ? */ /* 0x12: ? */ - /* 0x13: containts usercode / checksum */ + /* 0x13: contains usercode / checksum */ /* 0x24: ? */ /* 0x11: ? */ /* 0x18: ? */ diff --git a/src/rawParser.hpp b/src/rawParser.hpp index 4dce0f5..4f7c579 100644 --- a/src/rawParser.hpp +++ b/src/rawParser.hpp @@ -26,7 +26,7 @@ class RawParser: public ConfigBitstreamParser { RawParser(const std::string &filename, bool reverseOrder); /*! * \brief read full content of the file, fill the buffer - * \return EXIT_SUCCESS is file is fully read, EXIT_FAILURE otherwhise + * \return EXIT_SUCCESS is file is fully read, EXIT_FAILURE otherwise */ int parse() override; diff --git a/src/spiFlash.cpp b/src/spiFlash.cpp index abcf0f8..7befe28 100644 --- a/src/spiFlash.cpp +++ b/src/spiFlash.cpp @@ -284,7 +284,7 @@ int SPIFlash::erase_and_prog(int base_addr, uint8_t *data, int len) bool must_relock = false; // used to relock after write; /* microchip SST26VF032B have global lock set - * at powerup. global unlock must be send inconditionally + * at powerup. global unlock must be send unconditionally * with or without block protection */ if (_jedec_id == 0xbf2642bf) { // microchip SST26VF032B @@ -457,7 +457,7 @@ void SPIFlash::read_id() _flash_model->nr_sector, _flash_model->nr_sector * 0x80000 / 1048576); printInfo(content); } else { - /* read extented */ + /* read extended */ if ((_jedec_id & 0xff) != 0) { has_edid = true; len += (_jedec_id & 0x0ff); diff --git a/src/spiFlash.hpp b/src/spiFlash.hpp index 6c7a840..34a0673 100644 --- a/src/spiFlash.hpp +++ b/src/spiFlash.hpp @@ -29,7 +29,7 @@ class SPIFlash { int disable_protection(); /*! * \brief enable protection for selected blocks - * \param[in] protect_code: bp + tb combinaison + * \param[in] protect_code: bp + tb combination * \return -1 if write enable or enabling failed */ int enable_protection(uint8_t protect_code = 0x1c); @@ -84,7 +84,7 @@ class SPIFlash { * \brief check if area base_addr to base_addr + len match * data content * \param[in] base_addr: base address to read - * \param[in] data: theorical area content + * \param[in] data: theoretical area content * \param[in] len: length (in Byte) to area and data * \param[in] rd_burst: size of packet to read * \return false if read fails or content didn't match, true otherwise diff --git a/src/spiInterface.hpp b/src/spiInterface.hpp index bdaaf16..1b5ef48 100644 --- a/src/spiInterface.hpp +++ b/src/spiInterface.hpp @@ -29,7 +29,7 @@ class SPIInterface { bool bulk_erase_flash(); /*! * \brief write len byte into flash starting at offset, - * optionnally verify after write and unprotect + * optionally verify after write and unprotect * blocks if required and allowed * \param[in] offset: offset into flash * \param[in] data: data to write diff --git a/src/xilinx.hpp b/src/xilinx.hpp index 1d242b0..fdbbd28 100644 --- a/src/xilinx.hpp +++ b/src/xilinx.hpp @@ -52,7 +52,7 @@ class Xilinx: public Device, SPIInterface { void reset() override; /* -------------- */ - /* xc3s managment */ + /* xc3s management */ /* -------------- */ /*! @@ -119,7 +119,7 @@ class Xilinx: public Device, SPIInterface { */ void xc2c_flow_reinit(); /*! - * \brief erase full internal flash (optionnally verify) + * \brief erase full internal flash (optionally verify) * \return false if erase fails, true otherwise */ bool xc2c_flow_erase(); @@ -175,7 +175,7 @@ class Xilinx: public Device, SPIInterface { /*! * \brief xilinx ZynqMP Ultrascale+ specific initialization * \param[in] family name - * \return true if device has been correctly initilized + * \return true if device has been correctly initialized */ bool zynqmp_init(const std::string &family); diff --git a/src/xvc_client.hpp b/src/xvc_client.hpp index 9a64ac8..87034c3 100644 --- a/src/xvc_client.hpp +++ b/src/xvc_client.hpp @@ -16,7 +16,7 @@ class XVC_client: public JtagInterface { public: /*! - * \brief contructor: open device + * \brief constructor: open device * \param[in] ip_addr: server IP addr * \param[in] clkHz: output clock frequency * \param[in] verbose: verbose level -1 quiet, 0 normal, diff --git a/src/xvc_server.cpp b/src/xvc_server.cpp index 34ff1d5..93d5d96 100644 --- a/src/xvc_server.cpp +++ b/src/xvc_server.cpp @@ -324,7 +324,7 @@ int XVC_server::handle_data(int fd) return 1; } - /* 3. receiv 2 x nr_bytes (TMS + TDI) */ + /* 3. receive 2 x nr_bytes (TMS + TDI) */ memset(_tmstdi, 0, _buffer_size); if (sread(fd, _tmstdi, nr_bytes * 2) != 1) { printError("reading data failed");