Search:

Type: Posts; User: husslela2

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Working with LZW data compression algorithm

    I have been working with the lzw data compression algorithm in which i need to modify to do a few things.

    First what I need to do is have in the command line to do a "-r" which resets the...
  2. Replies
    7
    Views
    6,830

    and then a data cache does reads and stores... ...

    and then a data cache does reads and stores...

    so I would have to create a structure for the d-cache

    which could maybe be:



    typedef struct dcache
    {
  3. Replies
    3
    Views
    797

    basically I am trying to create a Branch History...

    basically I am trying to create a Branch History Table.
    It takes the index of the least significant bits of the PC counter shifted right by two.
    I need to examine the PC counter to determine if it...
  4. Replies
    3
    Views
    797

    compute bottom bits

    i need take the bottom bits of a PC counter >>2.

    I took the log of a table of N=1024 entries
    i placed a PC counter from a trace file into a temp variable and shifted it to the right >>2.
    However...
  5. Replies
    7
    Views
    6,830

    unsigned char byte_t; void cache_create(char...

    unsigned char byte_t;
    void
    cache_create(char name, int assoc, int bsize, int nsets, int usize, int balloc, unsigned int hit_latency, enum cache_policy policy)
    {
    struct cache_t *cp;
    ...
  6. Replies
    35
    Views
    4,751

    ok i've added the clkcntr #include...

    ok i've added the clkcntr



    #include <stdio.h>
    #include <string.h>
    // You can include the trace item structure and type by including a header file
    #include "mytrace.h"

    #define...
  7. Replies
    7
    Views
    6,830

    Here is what I have now: unsigned char...

    Here is what I have now:



    unsigned char byte_t;
    void
    cache_create(char name, int assoc, int bsize, int nsets, int usize, int balloc, unsigned int hit_latency, enum cache_policy policy)
    {
    ...
  8. Replies
    7
    Views
    6,830

    D-Cache/I Cache Simulator

    Hello,

    I need to modify this code to allow me to obtain input from the user for how many sets, bytes, associativity, and block size for a cache. I need to simulate based on a d-cache and then an...
  9. Replies
    35
    Views
    4,751

    I'll edit my code based on what you said then...

    I'll edit my code based on what you said then will post it for you to take a look at it.

    I'll type up the algorithm i have to do for the branch prediction specs and how it works and see if you...
  10. Replies
    35
    Views
    4,751

    So basically in each if statement...put how many...

    So basically in each if statement...put how many cycles each type of instruction would take and then have a running total at the end.

    I suppose I could base branch prediction off of the clock...
  11. Replies
    35
    Views
    4,751

    If i wanted to implement a way to count clock...

    If i wanted to implement a way to count clock cycles and do branch prediction...do you have any suggestions with this code of how to do that?
  12. Replies
    35
    Views
    4,751

    actually i think i figured it out: here are my...

    actually i think i figured it out:
    here are my edits:



    int bflag;
    int temp;
    int distance;
    if (bflag)
    {
  13. Replies
    35
    Views
    4,751

    ok one more question and then i'm done i took...

    ok one more question and then i'm done

    i took this code you wrote and i added a variable to count the branch distance, i wanted to shift by two bits to the right
    so i implemented this:



    int...
  14. Replies
    35
    Views
    4,751

    I put in the code you showed me, and declared the...

    I put in the code you showed me, and declared the variables, however now I am getting an error that states that after the switch statement it is unreachable code.
  15. Replies
    35
    Views
    4,751

    ok so basically, i implemented the strtok(); and...

    ok so basically, i implemented the strtok();
    and I reformatted the printf string to make it where the delimiters can be "] [" and then i want to read in the printf statement...
    then take the...
  16. Replies
    1
    Views
    7,884

    Cache Simulator

    hi:

    I have two methods to write in this cache simulator:



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <math.h>
  17. Replies
    35
    Views
    4,751

    Where in the code would i put this, and what is...

    Where in the code would i put this, and what is RTM?
  18. Replies
    35
    Views
    4,751

    Yes! That's exactly what I want to do...how would...

    Yes! That's exactly what I want to do...how would i do that?
  19. Replies
    35
    Views
    4,751

    Yes, everytime the branch is accepted by the PC...

    Yes, everytime the branch is accepted by the PC counter on the next instruction, then I want to count that. So if the PC: is different the branch address given in the instruction before, then DO NOT...
  20. Replies
    35
    Views
    4,751

    sure: here is a sample of the verbose mode that...

    sure:
    here is a sample of the verbose mode that prints out the trace items.



    [item 1] entry ITYPE: (PC: 200cd8) (sReg_a: 2) (sReg_b: 255) (dReg: 2) (addr: 106)

    [item 2] entry BRANCH: (PC:...
  21. Replies
    35
    Views
    4,751

    This code inputs a trace file, and either will...

    This code inputs a trace file, and either will print a count of the different instruction types that are called; either an RType, JType, IType, Branch, PC, etc..
    If the "print view" is "on" it...
  22. Replies
    35
    Views
    4,751

    ok how would i write that in C and where would i...

    ok how would i write that in C and where would i place it in this code?
  23. Replies
    35
    Views
    4,751

    So basically I want to say if %x for a branch...

    So basically I want to say
    if %x for a branch equals %x.next of whatever line item it is whether it could be a load instruction or RTYPE, ITYPE, if the target address equals the branch address...
  24. Replies
    35
    Views
    4,751

    but the branch is not always "taken" if it's...

    but the branch is not always "taken"
    if it's taken the branch target address is used in the next called instruction in the trace file.
    That is the branch instructions that I need to count.
  25. Replies
    35
    Views
    4,751

    How to count Branches

    Hi:

    In my code below, I have a verbose mode which prints results of a trace file.
    I need count the branches that are taken.
    Which would be if the branch instruction on the line before is used in...
Results 1 to 25 of 42
Page 1 of 2 1 2