verification

Serial Testbenching and assertions with System-Verilog

纵饮孤独 提交于 2019-12-21 05:36:07
问题 I have a serial output of a verilog module I'd like to testbench using system-verilog. The output, called 'SO' will output something like 8'hC6 given the correct serial input 'SI' with a value of say 8'h9A. Is there an easy way to encode / decode serial IOs without having to explicitly describe each signal? For example: assert property @(posedge clk) $rose(EN) |-> ##[1:3] SI ##1 !SI[*2] ##1 SI[*2] ##1 !SI ##1 SI ##1 !SI ##[1:3] SO[*2] ##1 !SO[*3] ##1 SO[*2] ##1 !SO; It looks like a jumbled

Unable to verify digital signature using Apache PDFBOX

杀马特。学长 韩版系。学妹 提交于 2019-12-21 05:07:42
问题 I am a newbie in using Digital Signatures. In one of the projects we are using Apache PdfBox for processing digitally signed pdf files. While we could test all features, verification of signed pdf files is something we are unable to crack. We are using BouncyCastle as the provider. Below is the code: //Get Digital Signature and Signed Content from pdf file byte[] signatureAsBytes = pdsignature.getContents(new FileInputStream(this.INPUT_FILE)); byte[] signedContentAsBytes = pdsignature

How to check whether an email id exists or not?

筅森魡賤 提交于 2019-12-20 08:56:48
问题 How to check whether an email id exists or not using PHP? and to get information about the owner of the email id? is it possible to get the information about the owner of the email id? do have to work with some protocols like POP? Please help me. 回答1: Lets say a user submits the following email address: stackuser@stackoverflow.com The checks you would want to perform in order are like so: Is the address valid Does the domain run a mail server / MX Records Is it blacklisted Firstly within PHP

How to check whether an email id exists or not?

你说的曾经没有我的故事 提交于 2019-12-20 08:53:04
问题 How to check whether an email id exists or not using PHP? and to get information about the owner of the email id? is it possible to get the information about the owner of the email id? do have to work with some protocols like POP? Please help me. 回答1: Lets say a user submits the following email address: stackuser@stackoverflow.com The checks you would want to perform in order are like so: Is the address valid Does the domain run a mail server / MX Records Is it blacklisted Firstly within PHP

implement symbolic execution without model-checking

血红的双手。 提交于 2019-12-19 10:44:16
问题 How can I implement symbolic execution for particular language without using model checking and Finite State Machine (FSM) for example not such as Java Path Finder ? I need a detail about it. for example by what language I can implement this symbolic execution and what other things I need to know? 回答1: You need: A parser for the language to be symbolically executed that can build ASTs Name resolution (and associated symbol tables), so when your execution engine encounters an identifier it can

The risks of using PGO (profile-guided optimization) with production environment

放肆的年华 提交于 2019-12-19 09:18:16
问题 I have a system (Linux & C++) doing intensive signal/image processing operations. I would like to use PGO to improve performance of our application. Are there any risks / potential issues I should be aware of when using PGO ? Are unit tests + E2E tests enough to verify that PGO didn't break anything ? 回答1: Microsoft has system that is modifying conditional jumps based on the usage statistics plus it condenses frequently used pieces of code into smaller number of pages. This essentially

Google's new reCaptcha site verification returns no responce

限于喜欢 提交于 2019-12-19 03:32:13
问题 I do site verification after getting g-recaptcha-response thru user verification. I send xhr POST with parameters and get 200 OK, yet NO response as it should be: { "success": true|false, "error-codes": [...] // optional } Code <script type='text/javascript'> var onReturnCallback = function(response) { document.getElementById('resp').innerHTML = response; // works well //alert('grecaptcha.getResponse() = ' + grecaptcha.getResponse()); // works well too $.post("https://www.google.com/recaptcha

How to Embed Systemverilog Interpreter using DPI-C?

纵然是瞬间 提交于 2019-12-18 05:26:07
问题 Problem Description : I design in SystemVerilog and write the testbenches in the same language. I want to be able to compile my design and test different functions during simulation in the way you would using an interpreter with e. Ideally, I would have a terminal pop-up upon simulation when the simulator hit some line. Potential Ideas : I've looked at the DPI-C and it seems like I would have to "export" all tasks in my project in order to run them from the interpreter. However, I'm not sure

How can I get a regex to check that a string only contains alpha characters [a-z] or [A-Z]?

五迷三道 提交于 2019-12-17 15:44:11
问题 I'm trying to create a regex to verify that a given string only has alpha characters a-z or A-Z. The string can be up to 25 letters long. (I'm not sure if regex can check length of strings) Examples: 1. "abcdef" = true; 2. "a2bdef" = false ; 3. "333" = false; 4. "j" = true; 5. "aaaaaaaaaaaaaaaaaaaaaaaaaa" = false; //26 letters Here is what I have so far... can't figure out what's wrong with it though Regex alphaPattern = new Regex("[^a-z]|[^A-Z]"); I would think that would mean that the

Confused by Dafny postcondition messages

扶醉桌前 提交于 2019-12-14 03:19:45
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 3 years ago . A very simple multiplication code: method Product1 (m: nat, n: nat) returns (res:nat) ensures res == m * n; { var m1: nat := 0; var n1: nat := 0; res := 0; while (m1 < m) { n1 := 0; while (n1 < n) { res := res + 1; n1 := n1 + 1; } m1 := m1 + 1; } } When I verify it with dafny, it says: Description Line Column 1 A postcondition might not hold on this return